From d86c4bdcbb9f8d4814dccc00b2806089f911a4b5 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Sun, 17 May 2020 20:18:16 +0200 Subject: [PATCH] Update add admin user query --- scripts/ulogger.mysql | 4 ++-- scripts/ulogger.pgsql | 4 ++-- scripts/ulogger.sqlite | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/ulogger.mysql b/scripts/ulogger.mysql index 4226089..2e41c12 100644 --- a/scripts/ulogger.mysql +++ b/scripts/ulogger.mysql @@ -131,5 +131,5 @@ INSERT INTO `ol_layers` (`id`, `name`, `url`, `priority`) VALUES -- The password should be changed immediatelly after installation -- Uncomment if needed -- --- INSERT INTO `users` (`id`, `login`, `password`) VALUES --- (1, 'admin', '$2y$10$7OvZrKgonVZM9lkzrTbiou.CVhO3HjPk5y0W9L68fVwPs/osBRIMq'); \ No newline at end of file +-- INSERT INTO `users` (`id`, `login`, `password`, `admin`) VALUES +-- (1, 'admin', '$2y$10$7OvZrKgonVZM9lkzrTbiou.CVhO3HjPk5y0W9L68fVwPs/osBRIMq', TRUE); \ No newline at end of file diff --git a/scripts/ulogger.pgsql b/scripts/ulogger.pgsql index 7c1278a..6300830 100644 --- a/scripts/ulogger.pgsql +++ b/scripts/ulogger.pgsql @@ -134,5 +134,5 @@ INSERT INTO ol_layers (id, name, url, priority) VALUES -- The password should be changed immediatelly after installation -- Uncomment if needed -- --- INSERT INTO `users` (`id`, `login`, `password`) VALUES --- (1, 'admin', '$2y$10$7OvZrKgonVZM9lkzrTbiou.CVhO3HjPk5y0W9L68fVwPs/osBRIMq'); \ No newline at end of file +-- INSERT INTO users (id, login, password, admin) VALUES +-- (1, 'admin', '$2y$10$7OvZrKgonVZM9lkzrTbiou.CVhO3HjPk5y0W9L68fVwPs/osBRIMq', TRUE); \ No newline at end of file diff --git a/scripts/ulogger.sqlite b/scripts/ulogger.sqlite index e238128..855df21 100644 --- a/scripts/ulogger.sqlite +++ b/scripts/ulogger.sqlite @@ -128,5 +128,5 @@ INSERT INTO `ol_layers` (`id`, `name`, `url`, `priority`) VALUES -- The password should be changed immediatelly after installation -- Uncomment if needed -- --- INSERT INTO `users` (`id`, `login`, `password`) VALUES --- (1, 'admin', '$2y$10$7OvZrKgonVZM9lkzrTbiou.CVhO3HjPk5y0W9L68fVwPs/osBRIMq'); +-- INSERT INTO `users` (`id`, `login`, `password`, `admin`) VALUES +-- (1, 'admin', '$2y$10$7OvZrKgonVZM9lkzrTbiou.CVhO3HjPk5y0W9L68fVwPs/osBRIMq', 1);