mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
set sequence after insert
This commit is contained in:
parent
a761b0b417
commit
d7403d3745
|
@ -799,9 +799,15 @@ CREATE TABLE "tblVersion" (
|
|||
--
|
||||
|
||||
INSERT INTO "tblRoles" ("id", "name", "role") VALUES (1, 'Admin', 1);
|
||||
SELECT nextval('"tblRoles_id_seq"');
|
||||
INSERT INTO "tblRoles" ("id", "name", "role") VALUES (2, 'Guest', 2);
|
||||
SELECT nextval('"tblRoles_id_seq"');
|
||||
INSERT INTO "tblRoles" ("id", "name", "role") VALUES (3, 'User', 0);
|
||||
SELECT nextval('"tblRoles_id_seq"');
|
||||
INSERT INTO "tblUsers" VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', '', 'Administrator', 'address@server.com', '', '', '', 1, 0, NULL, 0, 0, 0, NULL);
|
||||
SELECT nextval('"tblUsers_id_seq"');
|
||||
INSERT INTO "tblUsers" VALUES (2, 'guest', NULL, '', 'Guest User', NULL, '', '', '', 2, 0, NULL, 0, 0, 0, NULL);
|
||||
SELECT nextval('"tblUsers_id_seq"');
|
||||
INSERT INTO "tblFolders" VALUES (1, 'DMS', 0, '', 'DMS root', extract(epoch from now()), 1, 0, 2, 0);
|
||||
SELECT nextval('"tblFolders_id_seq"');
|
||||
INSERT INTO "tblVersion" VALUES (CURRENT_TIMESTAMP, 5, 1, 0);
|
||||
|
|
Loading…
Reference in New Issue
Block a user