Skip to content

Commit

Permalink
Bump the schema version and update the Install migration
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Feb 6, 2024
1 parent 6a71bfa commit 1ecb86f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'id' => 'CraftCMS',
'name' => 'Craft CMS',
'version' => '5.0.0-alpha.12',
'schemaVersion' => '5.0.0.17',
'schemaVersion' => '5.0.0.18',
'minVersionRequired' => '4.4.0',
'basePath' => dirname(__DIR__), // Defines the @app alias
'runtimePath' => '@storage/runtime', // Defines the @runtime alias
Expand Down
12 changes: 6 additions & 6 deletions src/migrations/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public function createTables(): void
'file' => $this->string()->notNull(),
'line' => $this->smallInteger()->unsigned(),
'message' => $this->text(),
'traces' => $this->text(),
'traces' => $this->json(),
'dateCreated' => $this->dateTime()->notNull(),
'dateUpdated' => $this->dateTime()->notNull(),
'uid' => $this->uid(),
Expand Down Expand Up @@ -424,7 +424,7 @@ public function createTables(): void
$this->createTable(Table::FIELDLAYOUTS, [
'id' => $this->primaryKey(),
'type' => $this->string()->notNull(),
'config' => $this->text(),
'config' => $this->json(),
'dateCreated' => $this->dateTime()->notNull(),
'dateUpdated' => $this->dateTime()->notNull(),
'dateDeleted' => $this->dateTime()->null(),
Expand Down Expand Up @@ -471,7 +471,7 @@ public function createTables(): void
$this->createTable(Table::GQLSCHEMAS, [
'id' => $this->primaryKey(),
'name' => $this->string()->notNull(),
'scope' => $this->text(),
'scope' => $this->json(),
'isPublic' => $this->boolean()->notNull()->defaultValue(false),
'dateCreated' => $this->dateTime()->notNull(),
'dateUpdated' => $this->dateTime()->notNull(),
Expand Down Expand Up @@ -558,7 +558,7 @@ public function createTables(): void
'maxAuthors' => $this->smallInteger()->unsigned()->defaultValue(1)->notNull(),
'propagationMethod' => $this->string()->defaultValue(PropagationMethod::All->value)->notNull(),
'defaultPlacement' => $this->enum('defaultPlacement', [Section::DEFAULT_PLACEMENT_BEGINNING, Section::DEFAULT_PLACEMENT_END])->defaultValue('end')->notNull(),
'previewTargets' => $this->text(),
'previewTargets' => $this->json(),
'dateCreated' => $this->dateTime()->notNull(),
'dateUpdated' => $this->dateTime()->notNull(),
'dateDeleted' => $this->dateTime()->null(),
Expand Down Expand Up @@ -714,7 +714,7 @@ public function createTables(): void
]);
$this->createTable(Table::USERPREFERENCES, [
'userId' => $this->primaryKey(),
'preferences' => $this->text(),
'preferences' => $this->json(),
]);
$this->createTable(Table::USERS, [
'id' => $this->integer()->notNull(),
Expand Down Expand Up @@ -792,7 +792,7 @@ public function createTables(): void
'type' => $this->string()->notNull(),
'sortOrder' => $this->smallInteger()->unsigned(),
'colspan' => $this->tinyInteger(),
'settings' => $this->text(),
'settings' => $this->json(),
'enabled' => $this->boolean()->defaultValue(true)->notNull(),
'dateCreated' => $this->dateTime()->notNull(),
'dateUpdated' => $this->dateTime()->notNull(),
Expand Down

0 comments on commit 1ecb86f

Please sign in to comment.