Skip to content

Commit 5746834

Browse files
committed
Merge branch '3.x' into 4.x
2 parents 539231e + 7d80912 commit 5746834

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/migrations/Install.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public function safeDown(): bool
4242
*/
4343
protected function createTables(): void
4444
{
45+
$this->archiveTableIfExists(Table::LICENSES);
4546
$this->createTable(Table::LICENSES, [
4647
'id' => $this->primaryKey(),
4748
'productId' => $this->integer()->notNull(),
@@ -55,6 +56,7 @@ protected function createTables(): void
5556
'uid' => $this->uid(),
5657
]);
5758

59+
$this->archiveTableIfExists(Table::PRODUCTS);
5860
$this->createTable(Table::PRODUCTS, [
5961
'id' => $this->primaryKey(),
6062
'typeId' => $this->integer()->notNull(),
@@ -69,6 +71,7 @@ protected function createTables(): void
6971
'uid' => $this->uid(),
7072
]);
7173

74+
$this->archiveTableIfExists(Table::PRODUCT_TYPES);
7275
$this->createTable(Table::PRODUCT_TYPES, [
7376
'id' => $this->primaryKey(),
7477
'fieldLayoutId' => $this->integer(),
@@ -80,6 +83,7 @@ protected function createTables(): void
8083
'uid' => $this->uid(),
8184
]);
8285

86+
$this->archiveTableIfExists(Table::PRODUCT_TYPES_SITES);
8387
$this->createTable(Table::PRODUCT_TYPES_SITES, [
8488
'id' => $this->primaryKey(),
8589
'productTypeId' => $this->integer()->notNull(),

0 commit comments

Comments
 (0)