Skip to content

Commit 1dc98c4

Browse files
committed
Add migration for limits
1 parent 35ef8b8 commit 1dc98c4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/db/migrate.rs

+11
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,17 @@ fn migrate_inner(version: Option<Version>, conn: &Connection, apply_mode: ApplyM
296296
"ALTER TABLE releases ALTER COLUMN default_target DROP NOT NULL;
297297
ALTER TABLE releases ALTER COLUMN default_target DROP DEFAULT",
298298
),
299+
migration!(
300+
context,
301+
// version
302+
9,
303+
// description
304+
"Allow max number of targets to be overriden",
305+
// upgrade query
306+
"ALTER TABLE sandbox_overrides ADD COLUMN targets INT;",
307+
// downgrade query
308+
"ALTER TABLE sandbox_overrides DROP COLUMN targets;"
309+
),
299310
];
300311

301312
for migration in migrations {

0 commit comments

Comments
 (0)