Skip to content

Commit df70695

Browse files
committed
database schema migration
1 parent 2aa65a6 commit df70695

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- atlas:txmode none
2+
3+
-- Drop index "fly_apps_project_deployment_function_key" from table: "fly_apps"
4+
DROP INDEX CONCURRENTLY "fly_apps_project_deployment_function_key";
5+
-- Modify "fly_apps" table
6+
ALTER TABLE "fly_apps" ADD COLUMN "reap_error" text NULL;
7+
-- Create index "fly_apps_project_deployment_function_active_key" to table: "fly_apps"
8+
CREATE UNIQUE INDEX CONCURRENTLY "fly_apps_project_deployment_function_active_key" ON "fly_apps" ("project_id", "deployment_id", "function_id") WHERE (reaped_at IS NULL);
9+
-- Create index "fly_apps_reaper_idx" to table: "fly_apps"
10+
CREATE INDEX CONCURRENTLY "fly_apps_reaper_idx" ON "fly_apps" ("project_id", "created_at" DESC) WHERE ((status = 'ready'::text) AND (reaped_at IS NULL));

server/migrations/atlas.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
h1:ZyHM0gFiyq2OI01kLiietbApvPxDijo126vjSA9h9+Y=
1+
h1:YeKAdqF18xHOqpkxrvJMg4kk+K0pHR1rO6jr9xFU23g=
22
20250502122425_initial-tables.sql h1:Hu3O60/bB4fjZpUay8FzyOjw6vngp087zU+U/wVKn7k=
33
20250502130852_initial-indexes.sql h1:oYbnwi9y9PPTqu7uVbSPSALhCY8XF3rv03nDfG4b7mo=
44
20250502154250_relax-http-security-fields.sql h1:0+OYIDq7IHmx7CP5BChVwfpF2rOSrRDxnqawXio2EVo=
@@ -64,3 +64,4 @@ h1:ZyHM0gFiyq2OI01kLiietbApvPxDijo126vjSA9h9+Y=
6464
20251022000919_disabled-org.sql h1:IKFwsEKFnL0wOpwi8IQKchiV7WwzsLzrF8fqh+BwlNc=
6565
20251023235208_add_meta_tags_to_datamodel.sql h1:pQtvf+I0G7Y66RxxsHLyR0HzbsfNSeF0UpqgsIeRl5k=
6666
20251105184547_add-organization-features-table.sql h1:1OTlrIlL1jagd9BRvB1hO3B7c+1XRMvHhw1GSGKPPWA=
67+
20251110161934_fly-apps-reap-state.sql h1:Tl8h9lI5131BFj3C5EGPJ8HFHFalJr63vtbgVtLJWpE=

0 commit comments

Comments
 (0)