diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-01-18 15:54:13 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-01-19 11:14:38 -0100 |
commit | 898993a67d7c17da3f19be34a6d9824e8c6a5489 (patch) | |
tree | ff038ead01c0b48495bd9c45e8c6b9a3cbc9c500 /lib/Migration | |
parent | d207a22f33315063e6a29aaa41f58597834be381 (diff) |
set primary
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Migration')
-rw-r--r-- | lib/Migration/Version0002Date20190109084417.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Migration/Version0002Date20190109084417.php b/lib/Migration/Version0002Date20190109084417.php index 515cd718..b8d5a2d9 100644 --- a/lib/Migration/Version0002Date20190109084417.php +++ b/lib/Migration/Version0002Date20190109084417.php @@ -85,6 +85,7 @@ class Version0002Date20190109084417 extends SimpleMigrationStep { if (!$table->hasColumn('parent_id')) { $table->addColumn('parent_id', Type::STRING, ['notnull' => false, 'length' => 255]); } + $table->setPrimaryKey(['id']); return $schema; } |