Skip to content

Commit

Permalink
Update migrations.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
trevyn committed Jul 23, 2024
1 parent abf07cb commit eef1081
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions migrations.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ migrations_append_only = [
"CREATE TABLE prompt (rowid INTEGER PRIMARY KEY) STRICT",
"ALTER TABLE prompt ADD COLUMN time_ms INTEGER NOT NULL DEFAULT 0",
"ALTER TABLE prompt ADD COLUMN prompt TEXT NOT NULL DEFAULT ''",
"CREATE TABLE document (rowid INTEGER PRIMARY KEY) STRICT",
"ALTER TABLE document ADD COLUMN title TEXT NOT NULL DEFAULT ''",
"ALTER TABLE document ADD COLUMN content TEXT NOT NULL DEFAULT ''",
"ALTER TABLE document ADD COLUMN timestamp_ms INTEGER NOT NULL DEFAULT 0",
]
output_generated_schema_for_your_information_do_not_edit = """
CREATE TABLE _turbosql_migrations (
Expand All @@ -45,6 +49,12 @@ output_generated_schema_for_your_information_do_not_edit = """
time_ms INTEGER NOT NULL DEFAULT 0,
action TEXT NOT NULL DEFAULT ''
) STRICT
CREATE TABLE document (
rowid INTEGER PRIMARY KEY,
title TEXT NOT NULL DEFAULT '',
content TEXT NOT NULL DEFAULT '',
timestamp_ms INTEGER NOT NULL DEFAULT 0
) STRICT
CREATE TABLE prompt (
rowid INTEGER PRIMARY KEY,
time_ms INTEGER NOT NULL DEFAULT 0,
Expand Down Expand Up @@ -123,6 +133,29 @@ name = "action"
rust_type = "Action"
sql_type = "TEXT NOT NULL"

[output_generated_tables_do_not_edit.document]
name = "document"

[[output_generated_tables_do_not_edit.document.columns]]
name = "rowid"
rust_type = "Option < i64 >"
sql_type = "INTEGER PRIMARY KEY"

[[output_generated_tables_do_not_edit.document.columns]]
name = "title"
rust_type = "String"
sql_type = "TEXT NOT NULL"

[[output_generated_tables_do_not_edit.document.columns]]
name = "content"
rust_type = "String"
sql_type = "TEXT NOT NULL"

[[output_generated_tables_do_not_edit.document.columns]]
name = "timestamp_ms"
rust_type = "i64"
sql_type = "INTEGER NOT NULL"

[output_generated_tables_do_not_edit.prompt]
name = "prompt"

Expand Down

0 comments on commit eef1081

Please sign in to comment.