diff options
author | Gary Kim <gary@garykim.dev> | 2021-07-14 06:45:54 +0300 |
---|---|---|
committer | Gary Kim <gary@garykim.dev> | 2021-07-15 20:55:21 +0300 |
commit | cf85ac6c9f8c90341cf9f35a20886d6c3a5db8fd (patch) | |
tree | 9912317776dc262d475cea979a8eb95c635f8b49 /lib/Migration | |
parent | c49a1c27544ab0a4014a2ff385285d2bb556e5e6 (diff) |
Add remoteId
Signed-off-by: Gary Kim <gary@garykim.dev>
Diffstat (limited to 'lib/Migration')
-rw-r--r-- | lib/Migration/Version13000Date20210625232111.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Migration/Version13000Date20210625232111.php b/lib/Migration/Version13000Date20210625232111.php index fc3514462..3f19a546c 100644 --- a/lib/Migration/Version13000Date20210625232111.php +++ b/lib/Migration/Version13000Date20210625232111.php @@ -49,6 +49,14 @@ class Version13000Date20210625232111 extends SimpleMigrationStep { $table->addColumn('access_token', Types::STRING, [ 'notnull' => false, 'default' => null, + 'length' => 64 + ]); + } + if (!$table->hasColumn('remote_id')) { + $table->addColumn('remote_id', Types::STRING, [ + 'notnull' => false, + 'default' => null, + 'length' => 255, ]); } @@ -76,6 +84,11 @@ class Version13000Date20210625232111 extends SimpleMigrationStep { ]); $table->addColumn('access_token', Types::STRING, [ 'notnull' => true, + 'length' => 64, + ]); + $table->addColumn('remote_id', Types::STRING, [ + 'notnull' => true, + 'length' => 255, ]); $table->setPrimaryKey(['id']); |