|
26 | 26 | {:id "008-test", :transactions :both
|
27 | 27 | :up ["CREATE TABLE aaa (id int)"] :down ["DROP TABLE aaa"]}
|
28 | 28 | {:id "009-test", :transactions :both
|
29 |
| - :up ["CREATE TABLE bbb (id int)"] :down ["DROP TABLE bbb"]}] |
| 29 | + :up ["CREATE TABLE bbb (id int)"] :down ["DROP TABLE bbb"]} |
| 30 | + {:id "create-table-ccc", :transactions :both |
| 31 | + :up ["CREATE TABLE ccc (id int)"] :down ["DROP TABLE ccc"]}] |
30 | 32 | (sql/load-directory "test/migrations"))))
|
31 | 33 |
|
32 | 34 | (deftest test-load-resources
|
|
53 | 55 | {:id "008-test", :transactions :both
|
54 | 56 | :up ["CREATE TABLE aaa (id int)"] :down ["DROP TABLE aaa"]}
|
55 | 57 | {:id "009-test", :transactions :both
|
56 |
| - :up ["CREATE TABLE bbb (id int)"] :down ["DROP TABLE bbb"]}] |
| 58 | + :up ["CREATE TABLE bbb (id int)"] :down ["DROP TABLE bbb"]} |
| 59 | + {:id "create-table-ccc", :transactions :both |
| 60 | + :up ["CREATE TABLE ccc (id int)"] :down ["DROP TABLE ccc"]}] |
57 | 61 | (sql/load-resources "migrations"))))
|
58 | 62 |
|
59 | 63 | (deftest test-load-migrations
|
60 | 64 | (is (= [{:id "008-test", :transactions :both
|
61 | 65 | :up ["CREATE TABLE aaa (id int)"] :down ["DROP TABLE aaa"]}
|
62 | 66 | {:id "009-test", :transactions :both
|
63 |
| - :up ["CREATE TABLE bbb (id int)"] :down ["DROP TABLE bbb"]}] |
| 67 | + :up ["CREATE TABLE bbb (id int)"] :down ["DROP TABLE bbb"]} |
| 68 | + {:id "create-table-ccc", :transactions :both |
| 69 | + :up ["CREATE TABLE ccc (id int)"] :down ["DROP TABLE ccc"]}] |
64 | 70 | (sql/load-migrations "test/migrations/008-test.edn"))))
|
0 commit comments