From af66ea99687b25d663caff02d0e9bee07835b73a Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 16 Jun 2020 15:23:39 +0200 Subject: [PATCH] set version in tblVersion --- install/create_tables-innodb.sql | 2 +- install/create_tables-postgres.sql | 2 +- install/create_tables-sqlite3.sql | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install/create_tables-innodb.sql b/install/create_tables-innodb.sql index e2664f5cd..5b378349d 100644 --- a/install/create_tables-innodb.sql +++ b/install/create_tables-innodb.sql @@ -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'); diff --git a/install/create_tables-postgres.sql b/install/create_tables-postgres.sql index 0c534464b..435f58f30 100644 --- a/install/create_tables-postgres.sql +++ b/install/create_tables-postgres.sql @@ -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'); diff --git a/install/create_tables-sqlite3.sql b/install/create_tables-sqlite3.sql index a4c1f8a85..40879da3c 100644 --- a/install/create_tables-sqlite3.sql +++ b/install/create_tables-sqlite3.sql @@ -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');