Browse Source

config table introduced

Jiri Kuthan 23 years ago
parent
commit
92430a03ab
1 changed files with 15 additions and 7 deletions
  1. 15 7
      scripts/ser_mysql.sh

+ 15 - 7
scripts/ser_mysql.sh

@@ -123,6 +123,7 @@ INSERT INTO version VALUES ( 'event', '1');
 INSERT INTO version VALUES ( 'aliases', '1');
 INSERT INTO version VALUES ( 'active_sessions', '1');
 INSERT INTO version VALUES ( 'acc', '1');
+INSERT INTO version VALUES ( 'config', '1');
 
 
 
@@ -351,17 +352,24 @@ CREATE TABLE subscriber (
   KEY USER_ID_2 (USER_ID)
 ) $TABLE_TYPE;
 
-# add a testing user "tester" with password "tester" so that
-# one can try it out on quick start
+CREATE TABLE config (
+   attribute varchar(32) NOT NULL,
+   value varchar(128) NOT NULL,
+   user varchar(100) NOT NULL default '',
+   modified timestamp(14)
+) $TABLE_TYPE;
+
+# add an admin user "admin" with password==heslo, 
+# so that one can try it out on quick start
 
 INSERT INTO subscriber (USER_ID, PASSWORD, FIRST_NAME, LAST_NAME, PHONE, 
 	EMAIL_ADDRESS, DATETIME_CREATED, DATETIME_MODIFIED, confirmation, 
-	flag, SendNotification, Greeting, HA1, REALM, ha1b, phplib_id) 
-	VALUES ( 'tester', 'tester', 'tester', 'tester', '123', 
-	'[email protected]', '2002-09-04 19:37:45', '0000-00-00 00:00:00', 
+	flag, SendNotification, Greeting, HA1, REALM, ha1b, phplib_id, perms ) 
+	VALUES ( 'admin', 'heslo', 'Initial', 'Admin', '123', 
+	'root@localhost', '2002-09-04 19:37:45', '0000-00-00 00:00:00', 
 	'57DaSIPuCm52UNe54LF545750cfdL48OMZfroM53', 'o', '', '', 
-	'5ade512a57ba752c7570eab69da0a330', 'iptel.org', 
-	'506f9b16dbdf420032aeb1e0ad03a108', 'MZfroM53');
+	'0239482f19d262f3953186a725a6f53b', 'iptel.org', 
+	'a84e8abaa7e83d1b45c75ab15b90c320', '65e397cda0aa8e3202ea22cbd350e4e9', 'admin' );
 
 
 EOF