fix(db): add project id to tf state

This commit is contained in:
Denis Gukov 2024-12-16 02:06:46 +05:00
parent 5b2682aee2
commit f151ee7b89
No known key found for this signature in database
GPG Key ID: 044381366A5D4731

View File

@ -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
);