set version in tblVersion

This commit is contained in:
Uwe Steinmann 2020-06-16 15:23:39 +02:00
parent 3892a6186f
commit af66ea9968
3 changed files with 4 additions and 4 deletions

View File

@ -1030,4 +1030,4 @@ INSERT INTO `tblRoles` (`id`, `name`, `role`) VALUES (3, 'User', 0);
INSERT INTO tblUsers VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', '', '', 'Administrator', 'address@server.com', '', '', '', 1, 0, NULL, 0, 0, NULL, 0, NULL);
INSERT INTO tblUsers VALUES (2, 'guest', NULL, '', '', 'Guest User', NULL, '', '', '', 2, 0, NULL, 0, 0, NULL, 0, NULL);
INSERT INTO tblFolders VALUES (1, 'DMS', 0, '', 'DMS root', UNIX_TIMESTAMP(), 1, 0, 2, 0);
INSERT INTO tblVersion VALUES (NOW(), 6, 0, 0, 'core');
INSERT INTO tblVersion VALUES (NOW(), 6, 1, 0, 'core');

View File

@ -848,4 +848,4 @@ INSERT INTO "tblUsers" VALUES (2, 'guest', NULL, '', 'Guest User', 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, 6, 0, 0, 'core');
INSERT INTO "tblVersion" VALUES (CURRENT_TIMESTAMP, 6, 1, 0, 'core');

View File

@ -93,7 +93,7 @@ CREATE TABLE `tblApiKeys` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`user` INTEGER DEFAULT NULL REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
`apikey` varchar(32) NOT NULL,
`expires` TEXT NOT NULL,
`expires` TEXT DEFAULT NULL,
`disabled` INTEGER NOT NULL DEFAULT '0',
UNIQUE (`apikey`)
);
@ -851,4 +851,4 @@ INSERT INTO `tblRoles` (`id`, `name`, `role`) VALUES (3, 'User', 0);
INSERT INTO `tblUsers` VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', '', '', 'Administrator', 'address@server.com', '', '', '', 1, 0, '', 0, 0, NULL, 0, 0);
INSERT INTO `tblUsers` VALUES (2, 'guest', NULL, '', '', 'Guest User', NULL, '', '', '', 2, 0, '', 0, 0, NULL, 0, 0);
INSERT INTO `tblFolders` VALUES (1, 'DMS', 0, '', 'DMS root', strftime('%s','now'), 1, 0, 2, 0);
INSERT INTO `tblVersion` VALUES (DATETIME(), 6, 0, 0, 'core');
INSERT INTO `tblVersion` VALUES (DATETIME(), 6, 1, 0, 'core');