-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve dir schema source errors (#172)
- Loading branch information
1 parent
6937348
commit 5fe8259
Showing
9 changed files
with
165 additions
and
45 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
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
1 change: 1 addition & 0 deletions
1
internal/migration_acceptance_tests/testdata/dirsrc_happy_path/schema_0/0/0.sql
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 @@ | ||
CREATE TYPE color AS ENUM ('red', 'green', 'blue'); |
4 changes: 4 additions & 0 deletions
4
internal/migration_acceptance_tests/testdata/dirsrc_happy_path/schema_0/1.sql
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,4 @@ | ||
CREATE TABLE foobar ( | ||
id varchar(255) PRIMARY KEY, | ||
color color | ||
); |
3 changes: 3 additions & 0 deletions
3
internal/migration_acceptance_tests/testdata/dirsrc_happy_path/schema_0/2/0/0.sql
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,3 @@ | ||
CREATE TABLE foobar_fk ( | ||
id TEXT REFERENCES foobar (id) | ||
); |
5 changes: 5 additions & 0 deletions
5
internal/migration_acceptance_tests/testdata/dirsrc_happy_path/schema_1/0.sql
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,5 @@ | ||
CREATE TABLE fizzbuzz ( | ||
id TEXT, | ||
primary_color COLOR, | ||
other_color COLOR | ||
); |
3 changes: 3 additions & 0 deletions
3
internal/migration_acceptance_tests/testdata/dirsrc_invalid_sql/schema_0/0.sql
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,3 @@ | ||
CREATE TABLE foobar ( | ||
id SERIAL PRIMARY KEY | ||
); |
3 changes: 3 additions & 0 deletions
3
internal/migration_acceptance_tests/testdata/dirsrc_invalid_sql/schema_0/1.sql
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,3 @@ | ||
CREATE TABLE fizzbuzz ( | ||
id TEXT REFERENCES non_existent_table (id) | ||
); |
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