Browse code

config table introduced

Jiri Kuthan authored on 18/09/2002 22:50:07
Showing 1 changed files
... ...
@@ -123,6 +123,7 @@ INSERT INTO version VALUES ( 'event', '1');
123 123
 INSERT INTO version VALUES ( 'aliases', '1');
124 124
 INSERT INTO version VALUES ( 'active_sessions', '1');
125 125
 INSERT INTO version VALUES ( 'acc', '1');
126
+INSERT INTO version VALUES ( 'config', '1');
126 127
 
127 128
 
128 129
 
... ...
@@ -351,17 +352,24 @@ CREATE TABLE subscriber (
351 352
   KEY USER_ID_2 (USER_ID)
352 353
 ) $TABLE_TYPE;
353 354
 
354
-# add a testing user "tester" with password "tester" so that
355
-# one can try it out on quick start
355
+CREATE TABLE config (
356
+   attribute varchar(32) NOT NULL,
357
+   value varchar(128) NOT NULL,
358
+   user varchar(100) NOT NULL default '',
359
+   modified timestamp(14)
360
+) $TABLE_TYPE;
361
+
362
+# add an admin user "admin" with password==heslo, 
363
+# so that one can try it out on quick start
356 364
 
357 365
 INSERT INTO subscriber (USER_ID, PASSWORD, FIRST_NAME, LAST_NAME, PHONE, 
358 366
 	EMAIL_ADDRESS, DATETIME_CREATED, DATETIME_MODIFIED, confirmation, 
359
-	flag, SendNotification, Greeting, HA1, REALM, ha1b, phplib_id) 
360
-	VALUES ( 'tester', 'tester', 'tester', 'tester', '123', 
361
-	'jiri@iptel.org', '2002-09-04 19:37:45', '0000-00-00 00:00:00', 
367
+	flag, SendNotification, Greeting, HA1, REALM, ha1b, phplib_id, perms ) 
368
+	VALUES ( 'admin', 'heslo', 'Initial', 'Admin', '123', 
369
+	'root@localhost', '2002-09-04 19:37:45', '0000-00-00 00:00:00', 
362 370
 	'57DaSIPuCm52UNe54LF545750cfdL48OMZfroM53', 'o', '', '', 
363
-	'5ade512a57ba752c7570eab69da0a330', 'iptel.org', 
364
-	'506f9b16dbdf420032aeb1e0ad03a108', 'MZfroM53');
371
+	'0239482f19d262f3953186a725a6f53b', 'iptel.org', 
372
+	'a84e8abaa7e83d1b45c75ab15b90c320', '65e397cda0aa8e3202ea22cbd350e4e9', 'admin' );
365 373
 
366 374
 
367 375
 EOF