Commit 70ca5b3f8e5556866f5f6485f875658e3586e5b4

Authored by totoro
1 parent ca360511

remove the semicolon at the end of create table because SQLite store the creatio…

…n query without that semicolon. Hence during migration the algorithm compare the creation query (the stored query in DB  with program query), because it was always different "semicolon", the migration was always applied . That happened only when the database schema version changed.
Showing 2 changed files with 3 additions and 3 deletions   Show diff stats
calexium_lib @ 5ae5c66a0ff
1 -Subproject commit f22102f85d5212fe6133456d65ec6be48ae5ca3e 1 +Subproject commit 5ae5c66a0ffa08b2134ada8e2f97609076fc72a4
src/generation/create_table.anubis
@@ -64,7 +64,7 @@ define String @@ -64,7 +64,7 @@ define String
64 join(",\n"+indent, map((HK_Model_Column column) |-> create_table_generate_one_column(column, column_max_size+1), columns)) 64 join(",\n"+indent, map((HK_Model_Column column) |-> create_table_generate_one_column(column, column_max_size+1), columns))
65 . 65 .
66 66
67 -define String 67 +define String
68 create_table_generate_one_table 68 create_table_generate_one_table
69 ( 69 (
70 HK_Table table 70 HK_Table table
@@ -78,7 +78,7 @@ define String @@ -78,7 +78,7 @@ define String
78 "\"CREATE TABLE "+name+" (\n"+ 78 "\"CREATE TABLE "+name+" (\n"+
79 //columns 79 //columns
80 " "+create_table_generate_columns([hk_column("id",p_key) . columns], " ")+ 80 " "+create_table_generate_columns([hk_column("id",p_key) . columns], " ")+
81 - "\n);\".\n" 81 + "\n)\".\n"
82 . 82 .
83 83
84 define String 84 define String