forked from vieter-v/vieter
feat: add option to specify subdirectory in repo to use
This commit is contained in:
parent
a48358fd75
commit
1ce7b9d571
14 changed files with 120 additions and 28 deletions
|
|
@ -18,12 +18,14 @@ const (
|
|||
$embed_file('migrations/002-rename-to-targets/up.sql'),
|
||||
$embed_file('migrations/003-target-url-type/up.sql'),
|
||||
$embed_file('migrations/004-nullable-branch/up.sql'),
|
||||
$embed_file('migrations/005-repo-path/up.sql'),
|
||||
]
|
||||
migrations_down = [
|
||||
$embed_file('migrations/001-initial/down.sql'),
|
||||
$embed_file('migrations/002-rename-to-targets/down.sql'),
|
||||
$embed_file('migrations/003-target-url-type/down.sql'),
|
||||
$embed_file('migrations/004-nullable-branch/down.sql'),
|
||||
$embed_file('migrations/005-repo-path/down.sql'),
|
||||
]
|
||||
)
|
||||
|
||||
|
|
|
|||
1
src/db/migrations/005-repo-path/down.sql
Normal file
1
src/db/migrations/005-repo-path/down.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE Target DROP COLUMN path;
|
||||
1
src/db/migrations/005-repo-path/up.sql
Normal file
1
src/db/migrations/005-repo-path/up.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE Target ADD COLUMN path TEXT;
|
||||
Loading…
Add table
Add a link
Reference in a new issue