From f151ee7b89066eac953126963b7f723180b9dec9 Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Mon, 16 Dec 2024 02:06:46 +0500 Subject: [PATCH] fix(db): add project id to tf state --- db/sql/migrations/v2.11.5.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/sql/migrations/v2.11.5.sql b/db/sql/migrations/v2.11.5.sql index c68b9700..7e8fc2c7 100644 --- a/db/sql/migrations/v2.11.5.sql +++ b/db/sql/migrations/v2.11.5.sql @@ -10,8 +10,10 @@ create table project__terraform_inventory_alias( create table project__terraform_inventory_state( `id` integer primary key autoincrement, + `project_id` int, `inventory_id` int, `state` text, `created` datetime NOT NULL, + foreign key (`project_id`) references project(`id`) on delete cascade, foreign key (`inventory_id`) references project__inventory(`id`) on delete cascade ); \ No newline at end of file