10 LOGINPREFIX="Utilisateur-"
13 DROP TABLE user_%i_quick;
14 CREATE TABLE user_%i_quick (
15 c_name VARCHAR(256) NOT NULL PRIMARY KEY,
16 uid VARCHAR(256) NOT NULL,
17 startdate INT NOT NULL,
19 title VARCHAR(1000) NOT NULL,
20 participants VARCHAR(100000) NOT NULL
25 DROP TABLE user_%i_blob;
26 CREATE TABLE user_%i_blob (
27 c_name VARCHAR(256) NOT NULL PRIMARY KEY,
28 c_content VARCHAR(100000) NOT NULL,
29 c_creationdate INT NOT NULL,
30 c_lastmodified INT NOT NULL,
31 c_version INT NOT NULL
35 # parameters: LOGINPREFIX, i, LOGINPREFIX, i, DB, i, DB, i
36 FOLDERINFO_TEMPLATE="""
37 DELETE FROM SOGo_folder_info WHERE c_path2='%s%i';
38 INSERT INTO SOGo_folder_info
39 ( c_path, c_path1, c_path2, c_path3, c_path4, c_foldername,
40 c_location, c_quick_location, c_folder_type )
42 ( '/Users/%s%i/Calendar',
48 'http://postgres:test@localhost:5432/%s/user_%i_blob',
49 'http://postgres:test@localhost:5432/%s/user_%i_quick',
53 for i in range(1,1000):
54 print "-- USER: %i %s%i" % (i, LOGINPREFIX, i )
55 print QUICK_TEMPLATE % ( i, i, )
56 print CONTENT_TEMPLATE % ( i, i, )
57 print FOLDERINFO_TEMPLATE % ( LOGINPREFIX, i,
58 LOGINPREFIX, i, LOGINPREFIX, i,