| @@ 639-650 (lines=12) @@ | ||
| 636 | $table->addUniqueIndex(['objecttype', 'objectid', 'systemtagid'], 'mapping'); |
|
| 637 | } |
|
| 638 | ||
| 639 | if (!$schema->hasTable('systemtag_group')) { |
|
| 640 | $table = $schema->createTable('systemtag_group'); |
|
| 641 | $table->addColumn('systemtagid', 'integer', [ |
|
| 642 | 'notnull' => true, |
|
| 643 | 'length' => 4, |
|
| 644 | 'default' => 0, |
|
| 645 | ]); |
|
| 646 | $table->addColumn('gid', 'string', [ |
|
| 647 | 'notnull' => true, |
|
| 648 | ]); |
|
| 649 | $table->setPrimaryKey(['gid', 'systemtagid']); |
|
| 650 | } |
|
| 651 | ||
| 652 | if (!$schema->hasTable('file_locks')) { |
|
| 653 | $table = $schema->createTable('file_locks'); |
|
| @@ 873-885 (lines=13) @@ | ||
| 870 | $table->addIndex(['section'], 'personal_settings_section'); |
|
| 871 | } |
|
| 872 | ||
| 873 | if (!$schema->hasTable('accounts')) { |
|
| 874 | $table = $schema->createTable('accounts'); |
|
| 875 | $table->addColumn('uid', 'string', [ |
|
| 876 | 'notnull' => true, |
|
| 877 | 'length' => 64, |
|
| 878 | 'default' => '', |
|
| 879 | ]); |
|
| 880 | $table->addColumn('data', 'text', [ |
|
| 881 | 'notnull' => true, |
|
| 882 | 'default' => '', |
|
| 883 | ]); |
|
| 884 | $table->setPrimaryKey(['uid']); |
|
| 885 | } |
|
| 886 | return $schema; |
|
| 887 | } |
|
| 888 | ||