git-svn-id: svn://ultimatepp.org/upp/trunk@13962 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-02-01 10:49:49 +00:00
parent 558514b1c8
commit fa69ef9ce9
2 changed files with 5 additions and 10 deletions

View file

@ -32,15 +32,10 @@ CONSOLE_APP_MAIN
#ifdef _DEBUG
SqlSchema sch(SQLITE3);
All_Tables(sch);
// if(sch.ScriptChanged(SqlSchema::UPGRADE))
SqlPerformScript(sch.Upgrade());
if(sch.ScriptChanged(SqlSchema::ATTRIBUTES)) {
SqlPerformScript(sch.Attributes());
}
if(sch.ScriptChanged(SqlSchema::CONFIG)) {
SqlPerformScript(sch.ConfigDrop());
SqlPerformScript(sch.Config());
}
SqlPerformScript(sch.SchemaDrop());
SqlPerformScript(sch.Upgrade());
sch.SaveNormal();
#endif

View file

@ -1,6 +1,6 @@
TABLE_(SIMPLE_TEST1) SQL_NAME("TEST")
INT_ (ID) PRIMARY_KEY
STRING_ (NAME, 200) SQL_NAME("FIRST_NAME")
STRING_ (NAME, 200) SQL_NAME("NAME2")
STRING_ (LASTNAME, 200)
INT_ (BDATE)
END_TABLE