From d742ca24809e7ec091427838b2b5f9842b949cdd Mon Sep 17 00:00:00 2001 From: Jirayut 'Dear' Nimsaeng Date: Thu, 7 Jul 2016 12:38:58 +0700 Subject: [PATCH] Add new table records --- create_db.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/create_db.py b/create_db.py index 33aac84..ea3c78d 100755 --- a/create_db.py +++ b/create_db.py @@ -65,14 +65,16 @@ def init_settings(db, setting_names): db.session.add(setting) def init_records(): - + # Create initial user roles and turn off maintenance mode admin_role = Role('Administrator', 'Administrator') user_role = Role('User', 'User') maintenance_setting = Setting('maintenance', 'False') fullscreen_layout_setting = Setting('fullscreen_layout', 'True') record_helper_setting = Setting('record_helper', 'True') + login_ldap_first_setting = Setting('login_ldap_first', 'True') default_table_size_setting = Setting('default_record_table_size', '15') + default_domain_table_size_setting = Setting('default_domain_table_size', '10') # Check if record already exists init_roles(db, [admin_role, user_role])