diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-03-03 23:27:04 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | 8fd3975907aaaf2808a517b609f13e988ba5c044 (patch) | |
tree | 63baa2dea78138e4ee5fafd78c51cb52026cca21 | |
parent | e96d7c9b1e89161560c33ad4591be39a75dc4811 (diff) |
🎨 Update share migration
- remove shared_with column
- make shared_by nullable
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
-rw-r--r-- | lib/Migration/Version150302Date20210227133330.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Migration/Version150302Date20210227133330.php b/lib/Migration/Version150302Date20210227133330.php index 4239ea226..e40a0d929 100644 --- a/lib/Migration/Version150302Date20210227133330.php +++ b/lib/Migration/Version150302Date20210227133330.php @@ -35,12 +35,7 @@ class Version150302Date20210227133330 extends SimpleMigrationStep { if ($schema->hasTable('news_items')) { $table = $schema->getTable('news_items'); $table->addColumn('shared_by', 'string', [ - 'notnull' => true, - 'length' => 64, - 'default' => '', - ]); - $table->addColumn('shared_with', 'string', [ - 'notnull' => true, + 'notnull' => false, 'length' => 64, 'default' => '', ]); |