File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -261,16 +261,15 @@ CREATE TABLE ldap_credential(
261
261
created_at TIMESTAMP NOT NULL DEFAULT(DATETIME(' now' )),
262
262
updated_at TIMESTAMP NOT NULL DEFAULT(DATETIME(' now' ))
263
263
);
264
- CREATE TABLE pages (
265
- id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
266
- -- The user who created the page
267
- author_id INTEGER NOT NULL ,
268
- title TEXT ,
269
- content TEXT ,
270
- created_at TIMESTAMP NOT NULL DEFAULT(DATETIME(' now' )),
271
- updated_at TIMESTAMP NOT NULL DEFAULT(DATETIME(' now' )),
264
+ CREATE TABLE IF NOT EXISTS " pages" (
265
+ id integer PRIMARY KEY AUTOINCREMENT NOT NULL ,
266
+ author_id integer NOT NULL ,
267
+ title text ,
268
+ content text ,
269
+ created_at timestamp NOT NULL DEFAULT(DATETIME(' now' )),
270
+ updated_at timestamp NOT NULL DEFAULT(DATETIME(' now' )),
272
271
code_source_id VARCHAR (255 ),
273
- FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE CASCADE
272
+ FOREIGN KEY (author_id) REFERENCES " users" (id) ON DELETE CASCADE
274
273
);
275
274
CREATE TABLE page_sections (
276
275
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
You can’t perform that action at this time.
0 commit comments