Skip to content

Commit

Permalink
Merge pull request #914 from nextcloud/fix-json-settings-migration
Browse files Browse the repository at this point in the history
fix(migrations): set default value for new not null column
  • Loading branch information
mejo- authored Oct 2, 2023
2 parents d742c98 + 28a140d commit 0d546da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Migration/Version020800Date20230911000000.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
if (!$table->hasColumn('settings')) {
$table->addColumn('settings', Types::JSON, [
'notnull' => true,
'default' => '[]'
]);
$this->runPageModeMigration = true;

Expand Down

0 comments on commit 0d546da

Please sign in to comment.