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:
2026-11-26 07:59:07 +01:00
parent ed8ae3200b
commit 21a33e53aa
3 changed files with 71 additions and 0 deletions
+2
View File
@@ -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']
],