add primary key and auto-increment schema support
Configure the page translations table with an `id` primary key and auto-increment column, and detect and apply these constraints in database schema updates. Add persistence coverage for English and German homepage routes.
This commit is contained in:
@@ -45,6 +45,8 @@ return [
|
||||
'updated_at' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
|
||||
'created_at' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
|
||||
],
|
||||
'primaryKey' => 'id',
|
||||
'autoIncrement' => 'id',
|
||||
'uniqueKeys' => [
|
||||
'page_id' => ['page_id','locale']
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user