-
Notifications
You must be signed in to change notification settings - Fork 13
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
Showing
25 changed files
with
421 additions
and
50 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
28 changes: 27 additions & 1 deletion
28
examples/getting_started/.butane/migrations/20201229_144636751_init/Blog.table
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 |
---|---|---|
@@ -1 +1,27 @@ | ||
{"name":"Blog","columns":[{"name":"id","sqltype":{"Known":"BigInt"},"nullable":false,"pk":true,"auto":true,"default":null},{"name":"name","sqltype":{"Known":"Text"},"nullable":false,"pk":false,"auto":false,"default":null}]} | ||
{ | ||
"name": "Blog", | ||
"columns": [ | ||
{ | ||
"name": "id", | ||
"sqltype": { | ||
"Known": "BigInt" | ||
}, | ||
"nullable": false, | ||
"pk": true, | ||
"auto": true, | ||
"unique": false, | ||
"default": null | ||
}, | ||
{ | ||
"name": "name", | ||
"sqltype": { | ||
"Known": "Text" | ||
}, | ||
"nullable": false, | ||
"pk": false, | ||
"auto": false, | ||
"unique": false, | ||
"default": null | ||
} | ||
] | ||
} |
72 changes: 71 additions & 1 deletion
72
examples/getting_started/.butane/migrations/20201229_144636751_init/Post.table
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 |
---|---|---|
@@ -1 +1,71 @@ | ||
{"name":"Post","columns":[{"name":"id","sqltype":{"Known":"Int"},"nullable":false,"pk":true,"auto":true,"default":null},{"name":"title","sqltype":{"Known":"Text"},"nullable":false,"pk":false,"auto":false,"default":null},{"name":"body","sqltype":{"Known":"Text"},"nullable":false,"pk":false,"auto":false,"default":null},{"name":"published","sqltype":{"Known":"Bool"},"nullable":false,"pk":false,"auto":false,"default":null},{"name":"blog","sqltype":{"Known":"BigInt"},"nullable":false,"pk":false,"auto":false,"default":null},{"name":"byline","sqltype":{"Known":"Text"},"nullable":true,"pk":false,"auto":false,"default":null}]} | ||
{ | ||
"name": "Post", | ||
"columns": [ | ||
{ | ||
"name": "id", | ||
"sqltype": { | ||
"Known": "Int" | ||
}, | ||
"nullable": false, | ||
"pk": true, | ||
"auto": true, | ||
"unique": false, | ||
"default": null | ||
}, | ||
{ | ||
"name": "title", | ||
"sqltype": { | ||
"Known": "Text" | ||
}, | ||
"nullable": false, | ||
"pk": false, | ||
"auto": false, | ||
"unique": false, | ||
"default": null | ||
}, | ||
{ | ||
"name": "body", | ||
"sqltype": { | ||
"Known": "Text" | ||
}, | ||
"nullable": false, | ||
"pk": false, | ||
"auto": false, | ||
"unique": false, | ||
"default": null | ||
}, | ||
{ | ||
"name": "published", | ||
"sqltype": { | ||
"Known": "Bool" | ||
}, | ||
"nullable": false, | ||
"pk": false, | ||
"auto": false, | ||
"unique": false, | ||
"default": null | ||
}, | ||
{ | ||
"name": "blog", | ||
"sqltype": { | ||
"Known": "BigInt" | ||
}, | ||
"nullable": false, | ||
"pk": false, | ||
"auto": false, | ||
"unique": false, | ||
"default": null | ||
}, | ||
{ | ||
"name": "byline", | ||
"sqltype": { | ||
"Known": "Text" | ||
}, | ||
"nullable": true, | ||
"pk": false, | ||
"auto": false, | ||
"unique": false, | ||
"default": null | ||
} | ||
] | ||
} |
28 changes: 27 additions & 1 deletion
28
examples/getting_started/.butane/migrations/20201229_144636751_init/Post_tags_Many.table
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 |
---|---|---|
@@ -1 +1,27 @@ | ||
{"name":"Post_tags_Many","columns":[{"name":"owner","sqltype":{"Known":"Int"},"nullable":false,"pk":false,"auto":false,"default":null},{"name":"has","sqltype":{"Known":"Text"},"nullable":false,"pk":false,"auto":false,"default":null}]} | ||
{ | ||
"name": "Post_tags_Many", | ||
"columns": [ | ||
{ | ||
"name": "owner", | ||
"sqltype": { | ||
"Known": "Int" | ||
}, | ||
"nullable": false, | ||
"pk": false, | ||
"auto": false, | ||
"unique": false, | ||
"default": null | ||
}, | ||
{ | ||
"name": "has", | ||
"sqltype": { | ||
"Known": "Text" | ||
}, | ||
"nullable": false, | ||
"pk": false, | ||
"auto": false, | ||
"unique": false, | ||
"default": null | ||
} | ||
] | ||
} |
17 changes: 16 additions & 1 deletion
17
examples/getting_started/.butane/migrations/20201229_144636751_init/Tag.table
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 |
---|---|---|
@@ -1 +1,16 @@ | ||
{"name":"Tag","columns":[{"name":"tag","sqltype":{"Known":"Text"},"nullable":false,"pk":true,"auto":false,"default":null}]} | ||
{ | ||
"name": "Tag", | ||
"columns": [ | ||
{ | ||
"name": "tag", | ||
"sqltype": { | ||
"Known": "Text" | ||
}, | ||
"nullable": false, | ||
"pk": true, | ||
"auto": false, | ||
"unique": false, | ||
"default": null | ||
} | ||
] | ||
} |
4 changes: 2 additions & 2 deletions
4
examples/getting_started/.butane/migrations/20201229_144636751_init/sqlite_down.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
DROP TABLE Blog; | ||
DROP TABLE Post_tags_Many; | ||
DROP TABLE Post; | ||
DROP TABLE Tag; | ||
DROP TABLE Post_tags_Many; | ||
DROP TABLE Tag; |
26 changes: 13 additions & 13 deletions
26
examples/getting_started/.butane/migrations/20201229_144636751_init/sqlite_up.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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
CREATE TABLE Tag ( | ||
tag TEXT NOT NULL PRIMARY KEY | ||
); | ||
CREATE TABLE Post_tags_Many ( | ||
owner INTEGER NOT NULL, | ||
has TEXT NOT NULL | ||
CREATE TABLE Blog ( | ||
id INTEGER NOT NULL PRIMARY KEY, | ||
"name" TEXT NOT NULL | ||
); | ||
CREATE TABLE Post ( | ||
id INTEGER NOT NULL PRIMARY KEY, | ||
title TEXT NOT NULL, | ||
body TEXT NOT NULL, | ||
published INTEGER NOT NULL, | ||
blog INTEGER NOT NULL, | ||
byline TEXT | ||
byline TEXT | ||
); | ||
CREATE TABLE Blog ( | ||
id INTEGER NOT NULL PRIMARY KEY, | ||
name TEXT NOT NULL | ||
CREATE TABLE Post_tags_Many ( | ||
owner INTEGER NOT NULL, | ||
has TEXT NOT NULL | ||
); | ||
CREATE TABLE Tag ( | ||
tag TEXT NOT NULL PRIMARY KEY | ||
); | ||
CREATE TABLE IF NOT EXISTS butane_migrations ( | ||
"name" TEXT NOT NULL PRIMARY KEY | ||
); | ||
CREATE TABLE butane_migrations ( | ||
name TEXT NOT NULL PRIMARY KEY | ||
); |
28 changes: 27 additions & 1 deletion
28
examples/getting_started/.butane/migrations/20201229_171630604_likes/Blog.table
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 |
---|---|---|
@@ -1 +1,27 @@ | ||
{"name":"Blog","columns":[{"name":"id","sqltype":{"Known":"BigInt"},"nullable":false,"pk":true,"auto":true,"default":null},{"name":"name","sqltype":{"Known":"Text"},"nullable":false,"pk":false,"auto":false,"default":null}]} | ||
{ | ||
"name": "Blog", | ||
"columns": [ | ||
{ | ||
"name": "id", | ||
"sqltype": { | ||
"Known": "BigInt" | ||
}, | ||
"nullable": false, | ||
"pk": true, | ||
"auto": true, | ||
"unique": false, | ||
"default": null | ||
}, | ||
{ | ||
"name": "name", | ||
"sqltype": { | ||
"Known": "Text" | ||
}, | ||
"nullable": false, | ||
"pk": false, | ||
"auto": false, | ||
"unique": false, | ||
"default": null | ||
} | ||
] | ||
} |
Oops, something went wrong.