Loading plugins/navbar/navbar.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,14 @@ namespace blogi { } void initPlugin(){ blogi::SQL sql; blogi::DBResult res; sql << "CREATE TABLE IF NOT EXISTS public.navbar(" << "id serial NOT NULL PRIMARY KEY," << "name character varying(255) NOT NULL," << "container_id character varying(255) NOT NULL" << "); "; Args->database->exec(&sql,res); return; } Loading plugins/staticpage/static.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,14 @@ blogi::StaticPage::~StaticPage(){ } void blogi::StaticPage::initPlugin(){ blogi::SQL sql; blogi::DBResult res; sql << "CREATE TABLE IF NOT EXISTS public.static_content (" << "id serial NOT NULL PRIMARY KEY," << "text text," << "url character varying(255) NOT NULL UNIQUE" << ")"; Args->database->exec(&sql,res); } bool blogi::StaticPage::haveSettings(){ Loading Loading
plugins/navbar/navbar.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,14 @@ namespace blogi { } void initPlugin(){ blogi::SQL sql; blogi::DBResult res; sql << "CREATE TABLE IF NOT EXISTS public.navbar(" << "id serial NOT NULL PRIMARY KEY," << "name character varying(255) NOT NULL," << "container_id character varying(255) NOT NULL" << "); "; Args->database->exec(&sql,res); return; } Loading
plugins/staticpage/static.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,14 @@ blogi::StaticPage::~StaticPage(){ } void blogi::StaticPage::initPlugin(){ blogi::SQL sql; blogi::DBResult res; sql << "CREATE TABLE IF NOT EXISTS public.static_content (" << "id serial NOT NULL PRIMARY KEY," << "text text," << "url character varying(255) NOT NULL UNIQUE" << ")"; Args->database->exec(&sql,res); } bool blogi::StaticPage::haveSettings(){ Loading