-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathVersion20180116142011.php
More file actions
43 lines (41 loc) · 941 Bytes
/
Version20180116142011.php
File metadata and controls
43 lines (41 loc) · 941 Bytes
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
<?php
/**
* Files_antivirus
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Viktar Dubiniuk <dubiniuk@owncloud.com>
*
* @copyright Viktar Dubiniuk 2019
* @license AGPL-3.0
*/
namespace OCA\Files_Antivirus\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Types\Types;
use OCP\Migration\ISchemaMigration;
/**
* Add etag field to the table
*/
class Version20180116142011 implements ISchemaMigration {
/**
* @param Schema $schema
* @param array $options
*
* @return void
*/
public function changeSchema(Schema $schema, array $options) {
$prefix = $options['tablePrefix'];
$table = $schema->getTable("{$prefix}files_antivirus");
$table->addColumn(
'etag',
/** @phan-suppress-next-line PhanDeprecatedClassConstant */
Types::STRING,
[
'default' => null,
'length' => 40,
'notnull' => false
]
);
}
}