Commit 408bbf0b authored by jan.koester's avatar jan.koester
Browse files

sqlite patch

parent 8680f6a1
Loading
Loading
Loading
Loading
+1 −1
Changes for plugins/staticpage/static.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ void blogi::StaticPage::initPlugin(){
    dbpp::SQL sql;
    dbpp::DBResult res;
    sql << "CREATE TABLE IF NOT EXISTS static_content ("
        << "id uuid PRIMARY KEY,"
        << "id " << Args->database[0]->getUUIDType(sql) << " PRIMARY KEY,"
        << "text text,"
        << "meta text,"
        << "url character varying(255) NOT NULL UNIQUE"
+1 −1
Changes for src/blogi.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ blogi::Blogi::Blogi(netplus::socket &serversocket,bool debug) : HttpEvent(server
    dbpp::DBResult optres;

    optsql << "CREATE TABLE IF NOT EXISTS options ("
               << "id uuid DEFAULT gen_random_uuid() PRIMARYKEY,"
               << "id " << PlgArgs->database[0]->getUUIDType(optsql) << " DEFAULT gen_random_uuid() PRIMARYKEY,"
               << "key character varying(255) NOT NULL,"
               << "value character varying(255) NOT NULL);";