mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-12 08:00:04 +01:00
Add tests for migrate/up/rollback commands
This commit is contained in:
parent
e87dd1e608
commit
a2e16a66d2
2 changed files with 147 additions and 3 deletions
9
stubs/db/migrations/20151129054053_test_migration.sql
Normal file
9
stubs/db/migrations/20151129054053_test_migration.sql
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
-- migrate:up
|
||||
CREATE TABLE users (
|
||||
id integer,
|
||||
name varchar
|
||||
);
|
||||
INSERT INTO users (id, name) VALUES (1, 'alice');
|
||||
|
||||
-- migrate:down
|
||||
DROP TABLE users;
|
||||
Loading…
Add table
Add a link
Reference in a new issue