-
Notifications
You must be signed in to change notification settings - Fork 0
/
migrations.toml
64 lines (56 loc) · 1.84 KB
/
migrations.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# This file is auto-generated by Turbosql.
# It is used to create and apply automatic schema migrations.
# It should be checked into source control.
# Modifying it by hand may be dangerous; see the docs.
migrations_append_only = [
'CREATE TABLE messagerow (rowid INTEGER PRIMARY KEY) STRICT',
'ALTER TABLE messagerow ADD COLUMN username TEXT',
'ALTER TABLE messagerow ADD COLUMN content TEXT',
'ALTER TABLE messagerow ADD COLUMN timestamp_ms INTEGER',
'CREATE TABLE userrow (rowid INTEGER PRIMARY KEY) STRICT',
'ALTER TABLE userrow ADD COLUMN username TEXT',
]
output_generated_schema_for_your_information_do_not_edit = '''
CREATE TABLE _turbosql_migrations (
rowid INTEGER PRIMARY KEY,
migration TEXT NOT NULL
) STRICT
CREATE TABLE messagerow (
rowid INTEGER PRIMARY KEY,
username TEXT,
content TEXT,
timestamp_ms INTEGER
) STRICT
CREATE TABLE userrow (
rowid INTEGER PRIMARY KEY,
username TEXT
) STRICT
'''
[output_generated_tables_do_not_edit.messagerow]
name = 'messagerow'
[[output_generated_tables_do_not_edit.messagerow.columns]]
name = 'rowid'
rust_type = 'Option < i64 >'
sql_type = 'INTEGER PRIMARY KEY'
[[output_generated_tables_do_not_edit.messagerow.columns]]
name = 'username'
rust_type = 'Option < String >'
sql_type = 'TEXT'
[[output_generated_tables_do_not_edit.messagerow.columns]]
name = 'content'
rust_type = 'Option < String >'
sql_type = 'TEXT'
[[output_generated_tables_do_not_edit.messagerow.columns]]
name = 'timestamp_ms'
rust_type = 'Option < i64 >'
sql_type = 'INTEGER'
[output_generated_tables_do_not_edit.userrow]
name = 'userrow'
[[output_generated_tables_do_not_edit.userrow.columns]]
name = 'rowid'
rust_type = 'Option < i64 >'
sql_type = 'INTEGER PRIMARY KEY'
[[output_generated_tables_do_not_edit.userrow.columns]]
name = 'username'
rust_type = 'Option < String >'
sql_type = 'TEXT'