| @@ 53-65 (lines=13) @@ | ||
| 50 | $schema = $schemaClosure(); |
|
| 51 | ||
| 52 | ||
| 53 | if (!$schema->hasTable('accounts')) { |
|
| 54 | $table = $schema->createTable('accounts'); |
|
| 55 | $table->addColumn('uid', 'string', [ |
|
| 56 | 'notnull' => true, |
|
| 57 | 'length' => 64, |
|
| 58 | 'default' => '', |
|
| 59 | ]); |
|
| 60 | $table->addColumn('data', 'text', [ |
|
| 61 | 'notnull' => true, |
|
| 62 | 'default' => '', |
|
| 63 | ]); |
|
| 64 | $table->setPrimaryKey(['uid']); |
|
| 65 | } |
|
| 66 | ||
| 67 | return $schema; |
|
| 68 | } |
|
| @@ 662-674 (lines=13) @@ | ||
| 659 | $table->addUniqueIndex(['objecttype', 'objectid', 'systemtagid'], 'mapping'); |
|
| 660 | } |
|
| 661 | ||
| 662 | if (!$schema->hasTable('systemtag_group')) { |
|
| 663 | $table = $schema->createTable('systemtag_group'); |
|
| 664 | $table->addColumn('systemtagid', 'integer', [ |
|
| 665 | 'notnull' => true, |
|
| 666 | 'length' => 4, |
|
| 667 | 'default' => 0, |
|
| 668 | 'unsigned' => true, |
|
| 669 | ]); |
|
| 670 | $table->addColumn('gid', 'string', [ |
|
| 671 | 'notnull' => true, |
|
| 672 | ]); |
|
| 673 | $table->setPrimaryKey(['gid', 'systemtagid']); |
|
| 674 | } |
|
| 675 | ||
| 676 | if (!$schema->hasTable('file_locks')) { |
|
| 677 | $table = $schema->createTable('file_locks'); |
|
| @@ 902-914 (lines=13) @@ | ||
| 899 | $table->addIndex(['section'], 'personal_settings_section'); |
|
| 900 | } |
|
| 901 | ||
| 902 | if (!$schema->hasTable('accounts')) { |
|
| 903 | $table = $schema->createTable('accounts'); |
|
| 904 | $table->addColumn('uid', 'string', [ |
|
| 905 | 'notnull' => true, |
|
| 906 | 'length' => 64, |
|
| 907 | 'default' => '', |
|
| 908 | ]); |
|
| 909 | $table->addColumn('data', 'text', [ |
|
| 910 | 'notnull' => true, |
|
| 911 | 'default' => '', |
|
| 912 | ]); |
|
| 913 | $table->setPrimaryKey(['uid']); |
|
| 914 | } |
|
| 915 | return $schema; |
|
| 916 | } |
|
| 917 | ||