-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cce614c
commit 9242626
Showing
6 changed files
with
155 additions
and
0 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
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,6 @@ | ||
module default { | ||
type Hello { | ||
property world: str; | ||
property foo: int64; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
tests/proj/project3/database_schema/migrations/00001-m1mdwoy.edgeql
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,7 @@ | ||
CREATE MIGRATION m1mdwoyrh5c677pkvx57hvsxlsqiycrhijh6wyytflykey5essjiba | ||
ONTO initial | ||
{ | ||
CREATE TYPE default::Hello { | ||
CREATE PROPERTY world: std::str; | ||
}; | ||
}; |
7 changes: 7 additions & 0 deletions
7
tests/proj/project3/database_schema/migrations/00002-m1bgeql.edgeql
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,7 @@ | ||
CREATE MIGRATION m1bgeql5ie4pvxxcs63vu5b5h74ft6qmfte2f4febgcwqzdbo4tusa | ||
ONTO m1mdwoyrh5c677pkvx57hvsxlsqiycrhijh6wyytflykey5essjiba | ||
{ | ||
ALTER TYPE default::Hello { | ||
CREATE PROPERTY foo: std::int64; | ||
}; | ||
}; |
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,15 @@ | ||
[instance] | ||
server-version = "nightly" | ||
|
||
[project] | ||
schema-dir = "./database_schema" | ||
|
||
[hooks] | ||
project.init.before = "true" | ||
project.init.after = "true" | ||
branch.switch.before = "true" | ||
branch.switch.after = "true" | ||
branch.wipe.before = "true" | ||
branch.wipe.after = "true" | ||
migration.apply.before = "true" | ||
migration.apply.after = "true" |