don't allow user registration by default.
[plewww.git] / drupal-hacks / database.pgsql
1 -- PlanetLab changes to the drupal(4.7) database 
2
3 -- PlanetLab: Enable path and planetlab modules
4 INSERT INTO system (filename, name, type, description, status, throttle, bootstrap, schema_version) VALUES ('modules/path.module', 'path', 'module', '', 1, 0, 0, 0);
5 INSERT INTO system (filename, name, type, description, status, throttle, bootstrap, schema_version) VALUES ('modules/planetlab.module', 'planetlab', 'module', '', 1, 0, 0, 0);
6
7 -- PlanetLab: Create a default superuser
8 INSERT INTO users(uid,name,mail) VALUES(1,'drupal','');
9
10 -- PlanetLab: Replace default user login block with PlanetLab login block
11 update blocks set module='planetlab' where module='user' and delta='0';
12
13
14 -- Disallow anonymous users to register
15 --
16 -- an already populated database may have the variable 'user_register'
17 -- set. In that case you can update the value and clear the cache.
18 --
19 -- update variable set value='s:1:"0";' where name='user_register';
20 -- delete from cache;
21 --
22 insert into variable (name, value) values ('user_register', 's:1:"0";');
23