diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2020-08-19 14:52:38 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-08-25 09:47:07 +0300 |
commit | 298f0d9ecd9a3ed6c717a1cf6161fc8e2eebfb6a (patch) | |
tree | 539a18b4e1ffe424796a0b7d768c699831722d24 /lib/Migration | |
parent | 260494d30d7b151e96798ee493c75ec1e3dce88b (diff) |
review fixes
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'lib/Migration')
-rw-r--r-- | lib/Migration/Version10000Date20200819121721.php | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/Migration/Version10000Date20200819121721.php b/lib/Migration/Version10000Date20200819121721.php index 8fc49d82e..53345f217 100644 --- a/lib/Migration/Version10000Date20200819121721.php +++ b/lib/Migration/Version10000Date20200819121721.php @@ -44,21 +44,16 @@ class Version10000Date20200819121721 extends SimpleMigrationStep { if (!$schema->hasTable('talk_bridges')) { $table = $schema->createTable('talk_bridges'); - $table->addColumn('id', Type::INTEGER, [ + $table->addColumn('id', Type::BIGINT, [ 'autoincrement' => true, 'notnull' => true, - 'length' => 11, ]); - $table->addColumn('room_id', Type::INTEGER, [ + $table->addColumn('room_id', Type::BIGINT, [ 'notnull' => true, - 'length' => 11, 'unsigned' => true, - 'default' => 0, ]); - $table->addColumn('json_values', Type::STRING, [ + $table->addColumn('json_values', Type::TEXT, [ 'notnull' => true, - 'length' => 10000, - 'default' => '{}', ]); $table->addIndex(['room_id'], 'tbr_room_id'); } |