Completed
Pull Request — master (#6562)
by Joas
30:36 queued 15:21
created
apps/dav/lib/Migration/Version1004Date20170919104507.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -7,30 +7,30 @@
 block discarded – undo
7 7
 
8 8
 class Version1004Date20170919104507 extends SimpleMigrationStep {
9 9
 
10
-	/**
11
-	 * @param IOutput $output
12
-	 * @param \Closure $schemaClosure The `\Closure` returns a `Schema`
13
-	 * @param array $options
14
-	 * @return null|Schema
15
-	 * @since 13.0.0
16
-	 */
17
-	public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
18
-		/** @var Schema $schema */
19
-		$schema = $schemaClosure();
20
-
21
-		$table = $schema->getTable('addressbooks');
22
-		$column = $table->getColumn('id');
23
-		$column->setUnsigned(true);
24
-
25
-		$table = $schema->getTable('calendarobjects');
26
-		$column = $table->getColumn('id');
27
-		$column->setUnsigned(true);
28
-
29
-		$table = $schema->getTable('calendarchanges');
30
-		$column = $table->getColumn('id');
31
-		$column->setUnsigned(true);
32
-
33
-		return $schema;
34
-	}
10
+    /**
11
+     * @param IOutput $output
12
+     * @param \Closure $schemaClosure The `\Closure` returns a `Schema`
13
+     * @param array $options
14
+     * @return null|Schema
15
+     * @since 13.0.0
16
+     */
17
+    public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
18
+        /** @var Schema $schema */
19
+        $schema = $schemaClosure();
20
+
21
+        $table = $schema->getTable('addressbooks');
22
+        $column = $table->getColumn('id');
23
+        $column->setUnsigned(true);
24
+
25
+        $table = $schema->getTable('calendarobjects');
26
+        $column = $table->getColumn('id');
27
+        $column->setUnsigned(true);
28
+
29
+        $table = $schema->getTable('calendarchanges');
30
+        $column = $table->getColumn('id');
31
+        $column->setUnsigned(true);
32
+
33
+        return $schema;
34
+    }
35 35
 
36 36
 }
Please login to merge, or discard this patch.
apps/dav/lib/Migration/Version1004Date20170825134824.php 1 patch
Indentation   +439 added lines, -439 removed lines patch added patch discarded remove patch
@@ -27,454 +27,454 @@
 block discarded – undo
27 27
 use OCP\Migration\IOutput;
28 28
 
29 29
 class Version1004Date20170825134824 extends SimpleMigrationStep {
30
-	/**
31
-	 * @param IOutput $output
32
-	 * @param \Closure $schemaClosure The `\Closure` returns a `Schema`
33
-	 * @param array $options
34
-	 * @return null|Schema
35
-	 * @since 13.0.0
36
-	 */
37
-	public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
38
-		/** @var Schema $schema */
39
-		$schema = $schemaClosure();
30
+    /**
31
+     * @param IOutput $output
32
+     * @param \Closure $schemaClosure The `\Closure` returns a `Schema`
33
+     * @param array $options
34
+     * @return null|Schema
35
+     * @since 13.0.0
36
+     */
37
+    public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
38
+        /** @var Schema $schema */
39
+        $schema = $schemaClosure();
40 40
 
41
-		if (!$schema->hasTable('addressbooks')) {
42
-			$table = $schema->createTable('addressbooks');
43
-			$table->addColumn('id', 'bigint', [
44
-				'autoincrement' => true,
45
-				'notnull' => true,
46
-				'length' => 11,
47
-				'unsigned' => true,
48
-			]);
49
-			$table->addColumn('principaluri', 'string', [
50
-				'notnull' => false,
51
-				'length' => 255,
52
-			]);
53
-			$table->addColumn('displayname', 'string', [
54
-				'notnull' => false,
55
-				'length' => 255,
56
-			]);
57
-			$table->addColumn('uri', 'string', [
58
-				'notnull' => false,
59
-				'length' => 255,
60
-			]);
61
-			$table->addColumn('description', 'string', [
62
-				'notnull' => false,
63
-				'length' => 255,
64
-			]);
65
-			$table->addColumn('synctoken', 'integer', [
66
-				'notnull' => true,
67
-				'default' => 1,
68
-				'length' => 10,
69
-				'unsigned' => true,
70
-			]);
71
-			$table->setPrimaryKey(['id']);
72
-			$table->addUniqueIndex(['principaluri', 'uri'], 'addressbook_index');
73
-		}
41
+        if (!$schema->hasTable('addressbooks')) {
42
+            $table = $schema->createTable('addressbooks');
43
+            $table->addColumn('id', 'bigint', [
44
+                'autoincrement' => true,
45
+                'notnull' => true,
46
+                'length' => 11,
47
+                'unsigned' => true,
48
+            ]);
49
+            $table->addColumn('principaluri', 'string', [
50
+                'notnull' => false,
51
+                'length' => 255,
52
+            ]);
53
+            $table->addColumn('displayname', 'string', [
54
+                'notnull' => false,
55
+                'length' => 255,
56
+            ]);
57
+            $table->addColumn('uri', 'string', [
58
+                'notnull' => false,
59
+                'length' => 255,
60
+            ]);
61
+            $table->addColumn('description', 'string', [
62
+                'notnull' => false,
63
+                'length' => 255,
64
+            ]);
65
+            $table->addColumn('synctoken', 'integer', [
66
+                'notnull' => true,
67
+                'default' => 1,
68
+                'length' => 10,
69
+                'unsigned' => true,
70
+            ]);
71
+            $table->setPrimaryKey(['id']);
72
+            $table->addUniqueIndex(['principaluri', 'uri'], 'addressbook_index');
73
+        }
74 74
 
75
-		if (!$schema->hasTable('cards')) {
76
-			$table = $schema->createTable('cards');
77
-			$table->addColumn('id', 'bigint', [
78
-				'autoincrement' => true,
79
-				'notnull' => true,
80
-				'length' => 11,
81
-				'unsigned' => true,
82
-			]);
83
-			$table->addColumn('addressbookid', 'integer', [
84
-				'notnull' => true,
85
-				'default' => 0,
86
-			]);
87
-			$table->addColumn('carddata', 'blob', [
88
-				'notnull' => false,
89
-			]);
90
-			$table->addColumn('uri', 'string', [
91
-				'notnull' => false,
92
-				'length' => 255,
93
-			]);
94
-			$table->addColumn('lastmodified', 'bigint', [
95
-				'notnull' => false,
96
-				'length' => 11,
97
-				'unsigned' => true,
98
-			]);
99
-			$table->addColumn('etag', 'string', [
100
-				'notnull' => false,
101
-				'length' => 32,
102
-			]);
103
-			$table->addColumn('size', 'bigint', [
104
-				'notnull' => true,
105
-				'length' => 11,
106
-				'unsigned' => true,
107
-			]);
108
-			$table->setPrimaryKey(['id']);
109
-		}
75
+        if (!$schema->hasTable('cards')) {
76
+            $table = $schema->createTable('cards');
77
+            $table->addColumn('id', 'bigint', [
78
+                'autoincrement' => true,
79
+                'notnull' => true,
80
+                'length' => 11,
81
+                'unsigned' => true,
82
+            ]);
83
+            $table->addColumn('addressbookid', 'integer', [
84
+                'notnull' => true,
85
+                'default' => 0,
86
+            ]);
87
+            $table->addColumn('carddata', 'blob', [
88
+                'notnull' => false,
89
+            ]);
90
+            $table->addColumn('uri', 'string', [
91
+                'notnull' => false,
92
+                'length' => 255,
93
+            ]);
94
+            $table->addColumn('lastmodified', 'bigint', [
95
+                'notnull' => false,
96
+                'length' => 11,
97
+                'unsigned' => true,
98
+            ]);
99
+            $table->addColumn('etag', 'string', [
100
+                'notnull' => false,
101
+                'length' => 32,
102
+            ]);
103
+            $table->addColumn('size', 'bigint', [
104
+                'notnull' => true,
105
+                'length' => 11,
106
+                'unsigned' => true,
107
+            ]);
108
+            $table->setPrimaryKey(['id']);
109
+        }
110 110
 
111
-		if (!$schema->hasTable('addressbookchanges')) {
112
-			$table = $schema->createTable('addressbookchanges');
113
-			$table->addColumn('id', 'bigint', [
114
-				'autoincrement' => true,
115
-				'notnull' => true,
116
-				'length' => 11,
117
-				'unsigned' => true,
118
-			]);
119
-			$table->addColumn('uri', 'string', [
120
-				'notnull' => false,
121
-				'length' => 255,
122
-			]);
123
-			$table->addColumn('synctoken', 'integer', [
124
-				'notnull' => true,
125
-				'default' => 1,
126
-				'length' => 10,
127
-				'unsigned' => true,
128
-			]);
129
-			$table->addColumn('addressbookid', 'integer', [
130
-				'notnull' => true,
131
-			]);
132
-			$table->addColumn('operation', 'smallint', [
133
-				'notnull' => true,
134
-				'length' => 1,
135
-			]);
136
-			$table->setPrimaryKey(['id']);
137
-			$table->addIndex(['addressbookid', 'synctoken'], 'addressbookid_synctoken');
138
-		}
111
+        if (!$schema->hasTable('addressbookchanges')) {
112
+            $table = $schema->createTable('addressbookchanges');
113
+            $table->addColumn('id', 'bigint', [
114
+                'autoincrement' => true,
115
+                'notnull' => true,
116
+                'length' => 11,
117
+                'unsigned' => true,
118
+            ]);
119
+            $table->addColumn('uri', 'string', [
120
+                'notnull' => false,
121
+                'length' => 255,
122
+            ]);
123
+            $table->addColumn('synctoken', 'integer', [
124
+                'notnull' => true,
125
+                'default' => 1,
126
+                'length' => 10,
127
+                'unsigned' => true,
128
+            ]);
129
+            $table->addColumn('addressbookid', 'integer', [
130
+                'notnull' => true,
131
+            ]);
132
+            $table->addColumn('operation', 'smallint', [
133
+                'notnull' => true,
134
+                'length' => 1,
135
+            ]);
136
+            $table->setPrimaryKey(['id']);
137
+            $table->addIndex(['addressbookid', 'synctoken'], 'addressbookid_synctoken');
138
+        }
139 139
 
140
-		if (!$schema->hasTable('calendarobjects')) {
141
-			$table = $schema->createTable('calendarobjects');
142
-			$table->addColumn('id', 'bigint', [
143
-				'autoincrement' => true,
144
-				'notnull' => true,
145
-				'length' => 11,
146
-				'unsigned' => true,
147
-			]);
148
-			$table->addColumn('calendardata', 'blob', [
149
-				'notnull' => false,
150
-			]);
151
-			$table->addColumn('uri', 'string', [
152
-				'notnull' => false,
153
-				'length' => 255,
154
-			]);
155
-			$table->addColumn('calendarid', 'integer', [
156
-				'notnull' => true,
157
-				'length' => 10,
158
-				'unsigned' => true,
159
-			]);
160
-			$table->addColumn('lastmodified', 'integer', [
161
-				'notnull' => false,
162
-				'length' => 10,
163
-				'unsigned' => true,
164
-			]);
165
-			$table->addColumn('etag', 'string', [
166
-				'notnull' => false,
167
-				'length' => 32,
168
-			]);
169
-			$table->addColumn('size', 'bigint', [
170
-				'notnull' => true,
171
-				'length' => 11,
172
-				'unsigned' => true,
173
-			]);
174
-			$table->addColumn('componenttype', 'string', [
175
-				'notnull' => false,
176
-				'length' => 8,
177
-			]);
178
-			$table->addColumn('firstoccurence', 'bigint', [
179
-				'notnull' => false,
180
-				'length' => 11,
181
-				'unsigned' => true,
182
-			]);
183
-			$table->addColumn('lastoccurence', 'bigint', [
184
-				'notnull' => false,
185
-				'length' => 11,
186
-				'unsigned' => true,
187
-			]);
188
-			$table->addColumn('uid', 'string', [
189
-				'notnull' => false,
190
-				'length' => 255,
191
-			]);
192
-			$table->addColumn('classification', 'integer', [
193
-				'notnull' => false,
194
-				'default' => 0,
195
-			]);
196
-			$table->setPrimaryKey(['id']);
197
-			$table->addUniqueIndex(['calendarid', 'uri'], 'calobjects_index');
198
-		}
140
+        if (!$schema->hasTable('calendarobjects')) {
141
+            $table = $schema->createTable('calendarobjects');
142
+            $table->addColumn('id', 'bigint', [
143
+                'autoincrement' => true,
144
+                'notnull' => true,
145
+                'length' => 11,
146
+                'unsigned' => true,
147
+            ]);
148
+            $table->addColumn('calendardata', 'blob', [
149
+                'notnull' => false,
150
+            ]);
151
+            $table->addColumn('uri', 'string', [
152
+                'notnull' => false,
153
+                'length' => 255,
154
+            ]);
155
+            $table->addColumn('calendarid', 'integer', [
156
+                'notnull' => true,
157
+                'length' => 10,
158
+                'unsigned' => true,
159
+            ]);
160
+            $table->addColumn('lastmodified', 'integer', [
161
+                'notnull' => false,
162
+                'length' => 10,
163
+                'unsigned' => true,
164
+            ]);
165
+            $table->addColumn('etag', 'string', [
166
+                'notnull' => false,
167
+                'length' => 32,
168
+            ]);
169
+            $table->addColumn('size', 'bigint', [
170
+                'notnull' => true,
171
+                'length' => 11,
172
+                'unsigned' => true,
173
+            ]);
174
+            $table->addColumn('componenttype', 'string', [
175
+                'notnull' => false,
176
+                'length' => 8,
177
+            ]);
178
+            $table->addColumn('firstoccurence', 'bigint', [
179
+                'notnull' => false,
180
+                'length' => 11,
181
+                'unsigned' => true,
182
+            ]);
183
+            $table->addColumn('lastoccurence', 'bigint', [
184
+                'notnull' => false,
185
+                'length' => 11,
186
+                'unsigned' => true,
187
+            ]);
188
+            $table->addColumn('uid', 'string', [
189
+                'notnull' => false,
190
+                'length' => 255,
191
+            ]);
192
+            $table->addColumn('classification', 'integer', [
193
+                'notnull' => false,
194
+                'default' => 0,
195
+            ]);
196
+            $table->setPrimaryKey(['id']);
197
+            $table->addUniqueIndex(['calendarid', 'uri'], 'calobjects_index');
198
+        }
199 199
 
200
-		if (!$schema->hasTable('calendars')) {
201
-			$table = $schema->createTable('calendars');
202
-			$table->addColumn('id', 'bigint', [
203
-				'autoincrement' => true,
204
-				'notnull' => true,
205
-				'length' => 11,
206
-				'unsigned' => true,
207
-			]);
208
-			$table->addColumn('principaluri', 'string', [
209
-				'notnull' => false,
210
-				'length' => 255,
211
-			]);
212
-			$table->addColumn('displayname', 'string', [
213
-				'notnull' => false,
214
-				'length' => 255,
215
-			]);
216
-			$table->addColumn('uri', 'string', [
217
-				'notnull' => false,
218
-				'length' => 255,
219
-			]);
220
-			$table->addColumn('synctoken', 'integer', [
221
-				'notnull' => true,
222
-				'default' => 1,
223
-				'unsigned' => true,
224
-			]);
225
-			$table->addColumn('description', 'string', [
226
-				'notnull' => false,
227
-				'length' => 255,
228
-			]);
229
-			$table->addColumn('calendarorder', 'integer', [
230
-				'notnull' => true,
231
-				'default' => 0,
232
-				'unsigned' => true,
233
-			]);
234
-			$table->addColumn('calendarcolor', 'string', [
235
-				'notnull' => false,
236
-			]);
237
-			$table->addColumn('timezone', 'text', [
238
-				'notnull' => false,
239
-			]);
240
-			$table->addColumn('components', 'string', [
241
-				'notnull' => false,
242
-				'length' => 64,
243
-			]);
244
-			$table->addColumn('transparent', 'smallint', [
245
-				'notnull' => true,
246
-				'length' => 1,
247
-				'default' => 0,
248
-			]);
249
-			$table->setPrimaryKey(['id']);
250
-			$table->addUniqueIndex(['principaluri', 'uri'], 'calendars_index');
251
-		}
200
+        if (!$schema->hasTable('calendars')) {
201
+            $table = $schema->createTable('calendars');
202
+            $table->addColumn('id', 'bigint', [
203
+                'autoincrement' => true,
204
+                'notnull' => true,
205
+                'length' => 11,
206
+                'unsigned' => true,
207
+            ]);
208
+            $table->addColumn('principaluri', 'string', [
209
+                'notnull' => false,
210
+                'length' => 255,
211
+            ]);
212
+            $table->addColumn('displayname', 'string', [
213
+                'notnull' => false,
214
+                'length' => 255,
215
+            ]);
216
+            $table->addColumn('uri', 'string', [
217
+                'notnull' => false,
218
+                'length' => 255,
219
+            ]);
220
+            $table->addColumn('synctoken', 'integer', [
221
+                'notnull' => true,
222
+                'default' => 1,
223
+                'unsigned' => true,
224
+            ]);
225
+            $table->addColumn('description', 'string', [
226
+                'notnull' => false,
227
+                'length' => 255,
228
+            ]);
229
+            $table->addColumn('calendarorder', 'integer', [
230
+                'notnull' => true,
231
+                'default' => 0,
232
+                'unsigned' => true,
233
+            ]);
234
+            $table->addColumn('calendarcolor', 'string', [
235
+                'notnull' => false,
236
+            ]);
237
+            $table->addColumn('timezone', 'text', [
238
+                'notnull' => false,
239
+            ]);
240
+            $table->addColumn('components', 'string', [
241
+                'notnull' => false,
242
+                'length' => 64,
243
+            ]);
244
+            $table->addColumn('transparent', 'smallint', [
245
+                'notnull' => true,
246
+                'length' => 1,
247
+                'default' => 0,
248
+            ]);
249
+            $table->setPrimaryKey(['id']);
250
+            $table->addUniqueIndex(['principaluri', 'uri'], 'calendars_index');
251
+        }
252 252
 
253
-		if (!$schema->hasTable('calendarchanges')) {
254
-			$table = $schema->createTable('calendarchanges');
255
-			$table->addColumn('id', 'bigint', [
256
-				'autoincrement' => true,
257
-				'notnull' => true,
258
-				'length' => 11,
259
-				'unsigned' => true,
260
-			]);
261
-			$table->addColumn('uri', 'string', [
262
-				'notnull' => false,
263
-				'length' => 255,
264
-			]);
265
-			$table->addColumn('synctoken', 'integer', [
266
-				'notnull' => true,
267
-				'default' => 1,
268
-				'length' => 10,
269
-				'unsigned' => true,
270
-			]);
271
-			$table->addColumn('calendarid', 'integer', [
272
-				'notnull' => true,
273
-			]);
274
-			$table->addColumn('operation', 'smallint', [
275
-				'notnull' => true,
276
-				'length' => 1,
277
-			]);
278
-			$table->setPrimaryKey(['id']);
279
-			$table->addIndex(['calendarid', 'synctoken'], 'calendarid_synctoken');
280
-		}
253
+        if (!$schema->hasTable('calendarchanges')) {
254
+            $table = $schema->createTable('calendarchanges');
255
+            $table->addColumn('id', 'bigint', [
256
+                'autoincrement' => true,
257
+                'notnull' => true,
258
+                'length' => 11,
259
+                'unsigned' => true,
260
+            ]);
261
+            $table->addColumn('uri', 'string', [
262
+                'notnull' => false,
263
+                'length' => 255,
264
+            ]);
265
+            $table->addColumn('synctoken', 'integer', [
266
+                'notnull' => true,
267
+                'default' => 1,
268
+                'length' => 10,
269
+                'unsigned' => true,
270
+            ]);
271
+            $table->addColumn('calendarid', 'integer', [
272
+                'notnull' => true,
273
+            ]);
274
+            $table->addColumn('operation', 'smallint', [
275
+                'notnull' => true,
276
+                'length' => 1,
277
+            ]);
278
+            $table->setPrimaryKey(['id']);
279
+            $table->addIndex(['calendarid', 'synctoken'], 'calendarid_synctoken');
280
+        }
281 281
 
282
-		if (!$schema->hasTable('calendarsubscriptions')) {
283
-			$table = $schema->createTable('calendarsubscriptions');
284
-			$table->addColumn('id', 'bigint', [
285
-				'autoincrement' => true,
286
-				'notnull' => true,
287
-				'length' => 11,
288
-				'unsigned' => true,
289
-			]);
290
-			$table->addColumn('uri', 'string', [
291
-				'notnull' => false,
292
-			]);
293
-			$table->addColumn('principaluri', 'string', [
294
-				'notnull' => false,
295
-				'length' => 255,
296
-			]);
297
-			$table->addColumn('source', 'string', [
298
-				'notnull' => false,
299
-				'length' => 255,
300
-			]);
301
-			$table->addColumn('displayname', 'string', [
302
-				'notnull' => false,
303
-				'length' => 100,
304
-			]);
305
-			$table->addColumn('refreshrate', 'string', [
306
-				'notnull' => false,
307
-				'length' => 10,
308
-			]);
309
-			$table->addColumn('calendarorder', 'integer', [
310
-				'notnull' => true,
311
-				'default' => 0,
312
-				'unsigned' => true,
313
-			]);
314
-			$table->addColumn('calendarcolor', 'string', [
315
-				'notnull' => false,
316
-			]);
317
-			$table->addColumn('striptodos', 'smallint', [
318
-				'notnull' => false,
319
-				'length' => 1,
320
-			]);
321
-			$table->addColumn('stripalarms', 'smallint', [
322
-				'notnull' => false,
323
-				'length' => 1,
324
-			]);
325
-			$table->addColumn('stripattachments', 'smallint', [
326
-				'notnull' => false,
327
-				'length' => 1,
328
-			]);
329
-			$table->addColumn('lastmodified', 'integer', [
330
-				'notnull' => false,
331
-				'unsigned' => true,
332
-			]);
333
-			$table->setPrimaryKey(['id']);
334
-			$table->addUniqueIndex(['principaluri', 'uri'], 'calsub_index');
335
-		}
282
+        if (!$schema->hasTable('calendarsubscriptions')) {
283
+            $table = $schema->createTable('calendarsubscriptions');
284
+            $table->addColumn('id', 'bigint', [
285
+                'autoincrement' => true,
286
+                'notnull' => true,
287
+                'length' => 11,
288
+                'unsigned' => true,
289
+            ]);
290
+            $table->addColumn('uri', 'string', [
291
+                'notnull' => false,
292
+            ]);
293
+            $table->addColumn('principaluri', 'string', [
294
+                'notnull' => false,
295
+                'length' => 255,
296
+            ]);
297
+            $table->addColumn('source', 'string', [
298
+                'notnull' => false,
299
+                'length' => 255,
300
+            ]);
301
+            $table->addColumn('displayname', 'string', [
302
+                'notnull' => false,
303
+                'length' => 100,
304
+            ]);
305
+            $table->addColumn('refreshrate', 'string', [
306
+                'notnull' => false,
307
+                'length' => 10,
308
+            ]);
309
+            $table->addColumn('calendarorder', 'integer', [
310
+                'notnull' => true,
311
+                'default' => 0,
312
+                'unsigned' => true,
313
+            ]);
314
+            $table->addColumn('calendarcolor', 'string', [
315
+                'notnull' => false,
316
+            ]);
317
+            $table->addColumn('striptodos', 'smallint', [
318
+                'notnull' => false,
319
+                'length' => 1,
320
+            ]);
321
+            $table->addColumn('stripalarms', 'smallint', [
322
+                'notnull' => false,
323
+                'length' => 1,
324
+            ]);
325
+            $table->addColumn('stripattachments', 'smallint', [
326
+                'notnull' => false,
327
+                'length' => 1,
328
+            ]);
329
+            $table->addColumn('lastmodified', 'integer', [
330
+                'notnull' => false,
331
+                'unsigned' => true,
332
+            ]);
333
+            $table->setPrimaryKey(['id']);
334
+            $table->addUniqueIndex(['principaluri', 'uri'], 'calsub_index');
335
+        }
336 336
 
337
-		if (!$schema->hasTable('schedulingobjects')) {
338
-			$table = $schema->createTable('schedulingobjects');
339
-			$table->addColumn('id', 'bigint', [
340
-				'autoincrement' => true,
341
-				'notnull' => true,
342
-				'length' => 11,
343
-				'unsigned' => true,
344
-			]);
345
-			$table->addColumn('principaluri', 'string', [
346
-				'notnull' => false,
347
-				'length' => 255,
348
-			]);
349
-			$table->addColumn('calendardata', 'blob', [
350
-				'notnull' => false,
351
-			]);
352
-			$table->addColumn('uri', 'string', [
353
-				'notnull' => false,
354
-				'length' => 255,
355
-			]);
356
-			$table->addColumn('lastmodified', 'integer', [
357
-				'notnull' => false,
358
-				'unsigned' => true,
359
-			]);
360
-			$table->addColumn('etag', 'string', [
361
-				'notnull' => false,
362
-				'length' => 32,
363
-			]);
364
-			$table->addColumn('size', 'bigint', [
365
-				'notnull' => true,
366
-				'length' => 11,
367
-				'unsigned' => true,
368
-			]);
369
-			$table->setPrimaryKey(['id']);
370
-		}
337
+        if (!$schema->hasTable('schedulingobjects')) {
338
+            $table = $schema->createTable('schedulingobjects');
339
+            $table->addColumn('id', 'bigint', [
340
+                'autoincrement' => true,
341
+                'notnull' => true,
342
+                'length' => 11,
343
+                'unsigned' => true,
344
+            ]);
345
+            $table->addColumn('principaluri', 'string', [
346
+                'notnull' => false,
347
+                'length' => 255,
348
+            ]);
349
+            $table->addColumn('calendardata', 'blob', [
350
+                'notnull' => false,
351
+            ]);
352
+            $table->addColumn('uri', 'string', [
353
+                'notnull' => false,
354
+                'length' => 255,
355
+            ]);
356
+            $table->addColumn('lastmodified', 'integer', [
357
+                'notnull' => false,
358
+                'unsigned' => true,
359
+            ]);
360
+            $table->addColumn('etag', 'string', [
361
+                'notnull' => false,
362
+                'length' => 32,
363
+            ]);
364
+            $table->addColumn('size', 'bigint', [
365
+                'notnull' => true,
366
+                'length' => 11,
367
+                'unsigned' => true,
368
+            ]);
369
+            $table->setPrimaryKey(['id']);
370
+        }
371 371
 
372
-		if (!$schema->hasTable('cards_properties')) {
373
-			$table = $schema->createTable('cards_properties');
374
-			$table->addColumn('id', 'bigint', [
375
-				'autoincrement' => true,
376
-				'notnull' => true,
377
-				'length' => 11,
378
-				'unsigned' => true,
379
-			]);
380
-			$table->addColumn('addressbookid', 'bigint', [
381
-				'notnull' => true,
382
-				'length' => 11,
383
-				'default' => 0,
384
-			]);
385
-			$table->addColumn('cardid', 'bigint', [
386
-				'notnull' => true,
387
-				'length' => 11,
388
-				'default' => 0,
389
-				'unsigned' => true,
390
-			]);
391
-			$table->addColumn('name', 'string', [
392
-				'notnull' => false,
393
-				'length' => 64,
394
-			]);
395
-			$table->addColumn('value', 'string', [
396
-				'notnull' => false,
397
-				'length' => 255,
398
-			]);
399
-			$table->addColumn('preferred', 'integer', [
400
-				'notnull' => true,
401
-				'length' => 4,
402
-				'default' => 1,
403
-			]);
404
-			$table->setPrimaryKey(['id']);
405
-			$table->addIndex(['cardid'], 'card_contactid_index');
406
-			$table->addIndex(['name'], 'card_name_index');
407
-			$table->addIndex(['value'], 'card_value_index');
408
-		}
372
+        if (!$schema->hasTable('cards_properties')) {
373
+            $table = $schema->createTable('cards_properties');
374
+            $table->addColumn('id', 'bigint', [
375
+                'autoincrement' => true,
376
+                'notnull' => true,
377
+                'length' => 11,
378
+                'unsigned' => true,
379
+            ]);
380
+            $table->addColumn('addressbookid', 'bigint', [
381
+                'notnull' => true,
382
+                'length' => 11,
383
+                'default' => 0,
384
+            ]);
385
+            $table->addColumn('cardid', 'bigint', [
386
+                'notnull' => true,
387
+                'length' => 11,
388
+                'default' => 0,
389
+                'unsigned' => true,
390
+            ]);
391
+            $table->addColumn('name', 'string', [
392
+                'notnull' => false,
393
+                'length' => 64,
394
+            ]);
395
+            $table->addColumn('value', 'string', [
396
+                'notnull' => false,
397
+                'length' => 255,
398
+            ]);
399
+            $table->addColumn('preferred', 'integer', [
400
+                'notnull' => true,
401
+                'length' => 4,
402
+                'default' => 1,
403
+            ]);
404
+            $table->setPrimaryKey(['id']);
405
+            $table->addIndex(['cardid'], 'card_contactid_index');
406
+            $table->addIndex(['name'], 'card_name_index');
407
+            $table->addIndex(['value'], 'card_value_index');
408
+        }
409 409
 
410
-		if (!$schema->hasTable('calendarobjects_props')) {
411
-			$table = $schema->createTable('calendarobjects_props');
412
-			$table->addColumn('id', 'bigint', [
413
-				'autoincrement' => true,
414
-				'notnull' => true,
415
-				'length' => 11,
416
-				'unsigned' => true,
417
-			]);
418
-			$table->addColumn('calendarid', 'bigint', [
419
-				'notnull' => true,
420
-				'length' => 11,
421
-				'default' => 0,
422
-			]);
423
-			$table->addColumn('objectid', 'bigint', [
424
-				'notnull' => true,
425
-				'length' => 11,
426
-				'default' => 0,
427
-				'unsigned' => true,
428
-			]);
429
-			$table->addColumn('name', 'string', [
430
-				'notnull' => false,
431
-				'length' => 64,
432
-			]);
433
-			$table->addColumn('parameter', 'string', [
434
-				'notnull' => false,
435
-				'length' => 64,
436
-			]);
437
-			$table->addColumn('value', 'string', [
438
-				'notnull' => false,
439
-				'length' => 255,
440
-			]);
441
-			$table->setPrimaryKey(['id']);
442
-			$table->addIndex(['objectid'], 'calendarobject_index');
443
-			$table->addIndex(['name'], 'calendarobject_name_index');
444
-			$table->addIndex(['value'], 'calendarobject_value_index');
445
-		}
410
+        if (!$schema->hasTable('calendarobjects_props')) {
411
+            $table = $schema->createTable('calendarobjects_props');
412
+            $table->addColumn('id', 'bigint', [
413
+                'autoincrement' => true,
414
+                'notnull' => true,
415
+                'length' => 11,
416
+                'unsigned' => true,
417
+            ]);
418
+            $table->addColumn('calendarid', 'bigint', [
419
+                'notnull' => true,
420
+                'length' => 11,
421
+                'default' => 0,
422
+            ]);
423
+            $table->addColumn('objectid', 'bigint', [
424
+                'notnull' => true,
425
+                'length' => 11,
426
+                'default' => 0,
427
+                'unsigned' => true,
428
+            ]);
429
+            $table->addColumn('name', 'string', [
430
+                'notnull' => false,
431
+                'length' => 64,
432
+            ]);
433
+            $table->addColumn('parameter', 'string', [
434
+                'notnull' => false,
435
+                'length' => 64,
436
+            ]);
437
+            $table->addColumn('value', 'string', [
438
+                'notnull' => false,
439
+                'length' => 255,
440
+            ]);
441
+            $table->setPrimaryKey(['id']);
442
+            $table->addIndex(['objectid'], 'calendarobject_index');
443
+            $table->addIndex(['name'], 'calendarobject_name_index');
444
+            $table->addIndex(['value'], 'calendarobject_value_index');
445
+        }
446 446
 
447
-		if (!$schema->hasTable('dav_shares')) {
448
-			$table = $schema->createTable('dav_shares');
449
-			$table->addColumn('id', 'bigint', [
450
-				'autoincrement' => true,
451
-				'notnull' => true,
452
-				'length' => 11,
453
-				'unsigned' => true,
454
-			]);
455
-			$table->addColumn('principaluri', 'string', [
456
-				'notnull' => false,
457
-				'length' => 255,
458
-			]);
459
-			$table->addColumn('type', 'string', [
460
-				'notnull' => false,
461
-				'length' => 255,
462
-			]);
463
-			$table->addColumn('access', 'smallint', [
464
-				'notnull' => false,
465
-				'length' => 1,
466
-			]);
467
-			$table->addColumn('resourceid', 'integer', [
468
-				'notnull' => true,
469
-				'unsigned' => true,
470
-			]);
471
-			$table->addColumn('publicuri', 'string', [
472
-				'notnull' => false,
473
-				'length' => 255,
474
-			]);
475
-			$table->setPrimaryKey(['id']);
476
-			$table->addUniqueIndex(['principaluri', 'resourceid', 'type', 'publicuri'], 'dav_shares_index');
477
-		}
478
-		return $schema;
479
-	}
447
+        if (!$schema->hasTable('dav_shares')) {
448
+            $table = $schema->createTable('dav_shares');
449
+            $table->addColumn('id', 'bigint', [
450
+                'autoincrement' => true,
451
+                'notnull' => true,
452
+                'length' => 11,
453
+                'unsigned' => true,
454
+            ]);
455
+            $table->addColumn('principaluri', 'string', [
456
+                'notnull' => false,
457
+                'length' => 255,
458
+            ]);
459
+            $table->addColumn('type', 'string', [
460
+                'notnull' => false,
461
+                'length' => 255,
462
+            ]);
463
+            $table->addColumn('access', 'smallint', [
464
+                'notnull' => false,
465
+                'length' => 1,
466
+            ]);
467
+            $table->addColumn('resourceid', 'integer', [
468
+                'notnull' => true,
469
+                'unsigned' => true,
470
+            ]);
471
+            $table->addColumn('publicuri', 'string', [
472
+                'notnull' => false,
473
+                'length' => 255,
474
+            ]);
475
+            $table->setPrimaryKey(['id']);
476
+            $table->addUniqueIndex(['principaluri', 'resourceid', 'type', 'publicuri'], 'dav_shares_index');
477
+        }
478
+        return $schema;
479
+    }
480 480
 }
Please login to merge, or discard this patch.