Skip to content

Commit

Permalink
fix: add migration files without embedding to binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Sep 1, 2023
1 parent 864cc57 commit 6d33a3d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/license_headers_check.yml
Expand Up @@ -26,4 +26,5 @@ jobs:
-s=only \
-ignore '.github/workflows/*.yml' \
-ignore '.github/workflows/*.yaml' \
-ignore 'migrations/*.sql' \
.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -8,4 +8,4 @@ indexer.toml

# IDE files
.vscode/
migrations/
# migrations/
2 changes: 2 additions & 0 deletions migrations/20230901142040_cost_models.down.sql
@@ -0,0 +1,2 @@
-- Add down migration script here
DROP TABLE "CostModels";
8 changes: 8 additions & 0 deletions migrations/20230901142040_cost_models.up.sql
@@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS "CostModels"
(
id INT,
deployment VARCHAR NOT NULL,
model TEXT,
variables JSONB,
PRIMARY KEY( deployment )
);

0 comments on commit 6d33a3d

Please sign in to comment.