Skip to content

Commit 28483b5

Browse files
authored
Merge pull request #1028 from ellemouton/sql27
[sql-27]: db/sqlc: kvstores schemas & queries
2 parents 30ceecf + e8d72f7 commit 28483b5

File tree

7 files changed

+554
-1
lines changed

7 files changed

+554
-1
lines changed

db/migrations.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const (
2222
// daemon.
2323
//
2424
// NOTE: This MUST be updated when a new migration is added.
25-
LatestMigrationVersion = 2
25+
LatestMigrationVersion = 3
2626
)
2727

2828
// MigrationTarget is a functional option that can be passed to applyMigrations

db/sqlc/kvstores.sql.go

+345
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- Drop indexes first.
2+
DROP INDEX IF EXISTS kvstores_lookup_idx;
3+
DROP INDEX IF EXISTS features_name_idx;
4+
DROP INDEX IF EXISTS rules_name_idx;
5+
6+
-- Drop tables in reverse dependency order.
7+
DROP TABLE IF EXISTS kvstores;
8+
DROP TABLE IF EXISTS features;
9+
DROP TABLE IF EXISTS rules;

0 commit comments

Comments
 (0)