UsedCSS.php
2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?php
namespace WP_Rocket\Engine\Optimization\RUCSS\Database\Schemas;
use WP_Rocket\Dependencies\Database\Schema;
/**
* RUCSS UsedCSS Schema.
*/
class UsedCSS extends Schema {
/**
* Array of database column objects
*
* @var array
*/
public $columns = [
// ID column.
[
'name' => 'id',
'type' => 'bigint',
'length' => '20',
'unsigned' => true,
'extra' => 'auto_increment',
'primary' => true,
'sortable' => true,
],
// URL column.
[
'name' => 'url',
'type' => 'varchar',
'length' => '2000',
'default' => '',
'cache_key' => true,
'searchable' => true,
'sortable' => true,
],
// CSS column.
[
'name' => 'css',
'type' => 'longtext',
'default' => null,
'cache_key' => false,
'searchable' => true,
'sortable' => true,
],
// Hash column.
[
'name' => 'hash',
'type' => 'varchar',
'length' => '32',
'default' => '',
'cache_key' => false,
'searchable' => true,
'sortable' => true,
],
// error_code column.
[
'name' => 'error_code',
'type' => 'varchar',
'length' => '32',
'default' => null,
'cache_key' => false,
'searchable' => true,
'sortable' => true,
],
// error_message column.
[
'name' => 'error_message',
'type' => 'longtext',
'default' => null,
'cache_key' => false,
'searchable' => true,
'sortable' => true,
],
// RETRIES column.
[
'name' => 'retries',
'type' => 'tinyint',
'length' => '1',
'default' => 1,
'cache_key' => false,
'searchable' => true,
'sortable' => true,
],
// IS_MOBILE column.
[
'name' => 'is_mobile',
'type' => 'tinyint',
'length' => '1',
'default' => 0,
'cache_key' => true,
'searchable' => true,
'sortable' => true,
],
// JOB_ID column.
[
'name' => 'job_id',
'type' => 'varchar',
'length' => '255',
'default' => null,
'cache_key' => true,
'searchable' => false,
'sortable' => false,
],
// QUEUE_NAME column.
[
'name' => 'queue_name',
'type' => 'varchar',
'length' => '255',
'default' => null,
'cache_key' => true,
'searchable' => false,
'sortable' => false,
],
// STATUS column.
[
'name' => 'status',
'type' => 'varchar',
'length' => '255',
'default' => null,
'cache_key' => true,
'searchable' => true,
'sortable' => false,
],
// MODIFIED column.
[
'name' => 'modified',
'type' => 'timestamp',
'default' => '0000-00-00 00:00:00',
'created' => true,
'date_query' => true,
'sortable' => true,
],
// LAST_ACCESSED column.
[
'name' => 'last_accessed',
'type' => 'timestamp',
'default' => '0000-00-00 00:00:00',
'created' => true,
'date_query' => true,
'sortable' => true,
],
];
}