-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fix formatting and add more snapshots
- Loading branch information
Showing
3 changed files
with
86 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
rusqlite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__all_valid_test.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: migrations | ||
--- | ||
Migrations { | ||
ms: [ | ||
M { | ||
up: "CREATE TABLE m1(a, b); CREATE TABLE m2(a, b, c);", | ||
up_hook: None, | ||
down: None, | ||
down_hook: None, | ||
foreign_key_check: false, | ||
comment: None, | ||
}, | ||
M { | ||
up: "CREATE TABLE t1(a, b);", | ||
up_hook: None, | ||
down: None, | ||
down_hook: None, | ||
foreign_key_check: false, | ||
comment: None, | ||
}, | ||
M { | ||
up: "ALTER TABLE t1 RENAME COLUMN b TO c;", | ||
up_hook: None, | ||
down: None, | ||
down_hook: None, | ||
foreign_key_check: false, | ||
comment: None, | ||
}, | ||
M { | ||
up: "CREATE TABLE t2(b);", | ||
up_hook: None, | ||
down: None, | ||
down_hook: None, | ||
foreign_key_check: false, | ||
comment: None, | ||
}, | ||
M { | ||
up: "ALTER TABLE t2 ADD COLUMN a;", | ||
up_hook: None, | ||
down: None, | ||
down_hook: None, | ||
foreign_key_check: false, | ||
comment: None, | ||
}, | ||
M { | ||
up: "\n CREATE TABLE fk1(a PRIMARY KEY);\n CREATE TABLE fk2(\n a,\n FOREIGN KEY(a) REFERENCES fk1(a)\n );\n INSERT INTO fk1 (a) VALUES ('foo');\n INSERT INTO fk2 (a) VALUES ('foo');\n ", | ||
up_hook: None, | ||
down: None, | ||
down_hook: None, | ||
foreign_key_check: true, | ||
comment: None, | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters