Completed
Push — master ( 52b26a...c858b1 )
by Aimeos
02:04
created
lib/custom/setup/default/schema/customer.php 1 patch
Spacing   +185 added lines, -185 removed lines patch added patch discarded remove patch
@@ -8,222 +8,222 @@
 block discarded – undo
8 8
 
9 9
 return array(
10 10
 	'table' => array(
11
-		'fos_user' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
12
-
13
-			$table = $schema->createTable( 'fos_user' );
14
-
15
-			$table->addColumn( 'id', 'integer', array( 'autoincrement' => true ) );
16
-			$table->addColumn( 'superuser', 'smallint', array( 'default' => 0 ) );
17
-			$table->addColumn( 'siteid', 'integer', array( 'notnull' => false ) );
18
-			$table->addColumn( 'username', 'string', array( 'length' => 180 ) );
19
-			$table->addColumn( 'username_canonical', 'string', array( 'length' => 180 ) );
20
-			$table->addColumn( 'email', 'string', array( 'length' => 180 ) );
21
-			$table->addColumn( 'email_canonical', 'string', array( 'length' => 180 ) );
22
-			$table->addColumn( 'enabled', 'boolean', [] );
23
-			$table->addColumn( 'salt', 'string', array( 'length' => 255, 'notnull' => false ) );
24
-			$table->addColumn( 'password', 'string', array( 'length' => 255 ) );
25
-			$table->addColumn( 'last_login', 'datetime', array( 'notnull' => false ) );
26
-			$table->addColumn( 'confirmation_token', 'string', array( 'length' => 180, 'notnull' => false ) );
27
-			$table->addColumn( 'password_requested_at', 'datetime', array( 'notnull' => false ) );
28
-			$table->addColumn( 'roles', 'text', array( 'length' => 0x7fffffff, 'comment' => '(DC2Type:array)' ) );
29
-			$table->addColumn( 'salutation', 'string', array( 'length' => 8 ) );
30
-			$table->addColumn( 'company', 'string', array( 'length' => 100 ) );
31
-			$table->addColumn( 'vatid', 'string', array( 'length' => 32 ) );
32
-			$table->addColumn( 'title', 'string', array( 'length' => 64 ) );
33
-			$table->addColumn( 'firstname', 'string', array( 'length' => 64 ) );
34
-			$table->addColumn( 'lastname', 'string', array( 'length' => 64 ) );
35
-			$table->addColumn( 'address1', 'string', array( 'length' => 200 ) );
36
-			$table->addColumn( 'address2', 'string', array( 'length' => 200 ) );
37
-			$table->addColumn( 'address3', 'string', array( 'length' => 200 ) );
38
-			$table->addColumn( 'postal', 'string', array( 'length' => 16 ) );
39
-			$table->addColumn( 'city', 'string', array( 'length' => 200 ) );
40
-			$table->addColumn( 'state', 'string', array( 'length' => 200 ) );
41
-			$table->addColumn( 'langid', 'string', array( 'length' => 5, 'notnull' => false ) );
42
-			$table->addColumn( 'countryid', 'string', array( 'length' => 2, 'notnull' => false, 'fixed' => true ) );
43
-			$table->addColumn( 'telephone', 'string', array( 'length' => 32 ) );
44
-			$table->addColumn( 'telefax', 'string', array( 'length' => 32 ) );
45
-			$table->addColumn( 'website', 'string', array( 'length' => 255 ) );
46
-			$table->addColumn( 'longitude', 'decimal', array( 'precision' => 8, 'scale' => 6, 'notnull' => false ) );
47
-			$table->addColumn( 'latitude', 'decimal', array( 'precision' => 8, 'scale' => 6, 'notnull' => false ) );
48
-			$table->addColumn( 'birthday', 'date', array( 'notnull' => false ) );
49
-			$table->addColumn( 'vdate', 'date', array( 'notnull' => false ) );
50
-			$table->addColumn( 'mtime', 'datetime', array( 'notnull' => false ) );
51
-			$table->addColumn( 'ctime', 'datetime', array( 'notnull' => false ) );
52
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
53
-
54
-			$table->setPrimaryKey( array( 'id' ), 'pk_fosus_id' );
55
-			$table->addUniqueIndex( array( 'confirmation_token' ), 'unq_fosus_confirmtoken' );
56
-			$table->addUniqueIndex( array( 'username_canonical' ), 'unq_fosus_username' );
57
-			$table->addUniqueIndex( array( 'email_canonical' ), 'unq_fosus_email' );
58
-			$table->addIndex( array( 'langid' ), 'idx_fosus_langid' );
59
-			$table->addIndex( array( 'lastname', 'firstname' ), 'idx_fosus_last_first' );
60
-			$table->addIndex( array( 'postal', 'address1' ), 'idx_fosus_post_addr1' );
61
-			$table->addIndex( array( 'postal', 'city' ), 'idx_fosus_post_city' );
62
-			$table->addIndex( array( 'lastname' ), 'idx_fosus_lastname' );
63
-			$table->addIndex( array( 'address1' ), 'idx_fosus_address1' );
64
-			$table->addIndex( array( 'city' ), 'idx_fosus_city' );
11
+		'fos_user' => function(\Doctrine\DBAL\Schema\Schema $schema) {
12
+
13
+			$table = $schema->createTable('fos_user');
14
+
15
+			$table->addColumn('id', 'integer', array('autoincrement' => true));
16
+			$table->addColumn('superuser', 'smallint', array('default' => 0));
17
+			$table->addColumn('siteid', 'integer', array('notnull' => false));
18
+			$table->addColumn('username', 'string', array('length' => 180));
19
+			$table->addColumn('username_canonical', 'string', array('length' => 180));
20
+			$table->addColumn('email', 'string', array('length' => 180));
21
+			$table->addColumn('email_canonical', 'string', array('length' => 180));
22
+			$table->addColumn('enabled', 'boolean', []);
23
+			$table->addColumn('salt', 'string', array('length' => 255, 'notnull' => false));
24
+			$table->addColumn('password', 'string', array('length' => 255));
25
+			$table->addColumn('last_login', 'datetime', array('notnull' => false));
26
+			$table->addColumn('confirmation_token', 'string', array('length' => 180, 'notnull' => false));
27
+			$table->addColumn('password_requested_at', 'datetime', array('notnull' => false));
28
+			$table->addColumn('roles', 'text', array('length' => 0x7fffffff, 'comment' => '(DC2Type:array)'));
29
+			$table->addColumn('salutation', 'string', array('length' => 8));
30
+			$table->addColumn('company', 'string', array('length' => 100));
31
+			$table->addColumn('vatid', 'string', array('length' => 32));
32
+			$table->addColumn('title', 'string', array('length' => 64));
33
+			$table->addColumn('firstname', 'string', array('length' => 64));
34
+			$table->addColumn('lastname', 'string', array('length' => 64));
35
+			$table->addColumn('address1', 'string', array('length' => 200));
36
+			$table->addColumn('address2', 'string', array('length' => 200));
37
+			$table->addColumn('address3', 'string', array('length' => 200));
38
+			$table->addColumn('postal', 'string', array('length' => 16));
39
+			$table->addColumn('city', 'string', array('length' => 200));
40
+			$table->addColumn('state', 'string', array('length' => 200));
41
+			$table->addColumn('langid', 'string', array('length' => 5, 'notnull' => false));
42
+			$table->addColumn('countryid', 'string', array('length' => 2, 'notnull' => false, 'fixed' => true));
43
+			$table->addColumn('telephone', 'string', array('length' => 32));
44
+			$table->addColumn('telefax', 'string', array('length' => 32));
45
+			$table->addColumn('website', 'string', array('length' => 255));
46
+			$table->addColumn('longitude', 'decimal', array('precision' => 8, 'scale' => 6, 'notnull' => false));
47
+			$table->addColumn('latitude', 'decimal', array('precision' => 8, 'scale' => 6, 'notnull' => false));
48
+			$table->addColumn('birthday', 'date', array('notnull' => false));
49
+			$table->addColumn('vdate', 'date', array('notnull' => false));
50
+			$table->addColumn('mtime', 'datetime', array('notnull' => false));
51
+			$table->addColumn('ctime', 'datetime', array('notnull' => false));
52
+			$table->addColumn('editor', 'string', array('length' => 255));
53
+
54
+			$table->setPrimaryKey(array('id'), 'pk_fosus_id');
55
+			$table->addUniqueIndex(array('confirmation_token'), 'unq_fosus_confirmtoken');
56
+			$table->addUniqueIndex(array('username_canonical'), 'unq_fosus_username');
57
+			$table->addUniqueIndex(array('email_canonical'), 'unq_fosus_email');
58
+			$table->addIndex(array('langid'), 'idx_fosus_langid');
59
+			$table->addIndex(array('lastname', 'firstname'), 'idx_fosus_last_first');
60
+			$table->addIndex(array('postal', 'address1'), 'idx_fosus_post_addr1');
61
+			$table->addIndex(array('postal', 'city'), 'idx_fosus_post_city');
62
+			$table->addIndex(array('lastname'), 'idx_fosus_lastname');
63
+			$table->addIndex(array('address1'), 'idx_fosus_address1');
64
+			$table->addIndex(array('city'), 'idx_fosus_city');
65 65
 
66 66
 			return $schema;
67 67
 		},
68 68
 
69
-		'fos_user_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
70
-
71
-			$table = $schema->createTable( 'fos_user_address' );
72
-
73
-			$table->addColumn( 'id', 'integer', array( 'autoincrement' => true ) );
74
-			$table->addColumn( 'siteid', 'integer', [] );
75
-			$table->addColumn( 'parentid', 'integer', [] );
76
-			$table->addColumn( 'company', 'string', array( 'length' => 100 ) );
77
-			$table->addColumn( 'vatid', 'string', array( 'length' => 32 ) );
78
-			$table->addColumn( 'salutation', 'string', array( 'length' => 8 ) );
79
-			$table->addColumn( 'title', 'string', array( 'length' => 64 ) );
80
-			$table->addColumn( 'firstname', 'string', array( 'length' => 64 ) );
81
-			$table->addColumn( 'lastname', 'string', array( 'length' => 64 ) );
82
-			$table->addColumn( 'address1', 'string', array( 'length' => 200 ) );
83
-			$table->addColumn( 'address2', 'string', array( 'length' => 200 ) );
84
-			$table->addColumn( 'address3', 'string', array( 'length' => 200 ) );
85
-			$table->addColumn( 'postal', 'string', array( 'length' => 16 ) );
86
-			$table->addColumn( 'city', 'string', array( 'length' => 200 ) );
87
-			$table->addColumn( 'state', 'string', array( 'length' => 200 ) );
88
-			$table->addColumn( 'langid', 'string', array( 'length' => 5, 'notnull' => false ) );
89
-			$table->addColumn( 'countryid', 'string', array( 'length' => 2, 'notnull' => false, 'fixed' => true ) );
90
-			$table->addColumn( 'telephone', 'string', array( 'length' => 32 ) );
91
-			$table->addColumn( 'email', 'string', array( 'length' => 255 ) );
92
-			$table->addColumn( 'telefax', 'string', array( 'length' => 255 ) );
93
-			$table->addColumn( 'website', 'string', array( 'length' => 255 ) );
94
-			$table->addColumn( 'longitude', 'decimal', array( 'precision' => 8, 'scale' => 6, 'notnull' => false ) );
95
-			$table->addColumn( 'latitude', 'decimal', array( 'precision' => 8, 'scale' => 6, 'notnull' => false ) );
96
-			$table->addColumn( 'flag', 'integer', [] );
97
-			$table->addColumn( 'pos', 'smallint', [] );
98
-			$table->addColumn( 'mtime', 'datetime', [] );
99
-			$table->addColumn( 'ctime', 'datetime', [] );
100
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
101
-
102
-			$table->setPrimaryKey( array( 'id' ), 'pk_fosad_id' );
103
-			$table->addIndex( array( 'parentid' ), 'idx_fosad_pid' );
104
-			$table->addIndex( array( 'lastname', 'firstname' ), 'idx_fosad_last_first' );
105
-			$table->addIndex( array( 'postal', 'address1' ), 'idx_fosad_post_addr1' );
106
-			$table->addIndex( array( 'postal', 'city' ), 'idx_fosad_post_city' );
107
-			$table->addIndex( array( 'address1' ), 'idx_fosad_address1' );
108
-			$table->addIndex( array( 'city' ), 'idx_fosad_city' );
109
-			$table->addIndex( array( 'email' ), 'idx_fosad_email' );
110
-
111
-			$table->addForeignKeyConstraint( 'fos_user', array( 'parentid' ), array( 'id' ),
112
-				array( 'onUpdate' => 'CASCADE', 'onDelete' => 'CASCADE' ), 'fk_fosad_pid' );
69
+		'fos_user_address' => function(\Doctrine\DBAL\Schema\Schema $schema) {
70
+
71
+			$table = $schema->createTable('fos_user_address');
72
+
73
+			$table->addColumn('id', 'integer', array('autoincrement' => true));
74
+			$table->addColumn('siteid', 'integer', []);
75
+			$table->addColumn('parentid', 'integer', []);
76
+			$table->addColumn('company', 'string', array('length' => 100));
77
+			$table->addColumn('vatid', 'string', array('length' => 32));
78
+			$table->addColumn('salutation', 'string', array('length' => 8));
79
+			$table->addColumn('title', 'string', array('length' => 64));
80
+			$table->addColumn('firstname', 'string', array('length' => 64));
81
+			$table->addColumn('lastname', 'string', array('length' => 64));
82
+			$table->addColumn('address1', 'string', array('length' => 200));
83
+			$table->addColumn('address2', 'string', array('length' => 200));
84
+			$table->addColumn('address3', 'string', array('length' => 200));
85
+			$table->addColumn('postal', 'string', array('length' => 16));
86
+			$table->addColumn('city', 'string', array('length' => 200));
87
+			$table->addColumn('state', 'string', array('length' => 200));
88
+			$table->addColumn('langid', 'string', array('length' => 5, 'notnull' => false));
89
+			$table->addColumn('countryid', 'string', array('length' => 2, 'notnull' => false, 'fixed' => true));
90
+			$table->addColumn('telephone', 'string', array('length' => 32));
91
+			$table->addColumn('email', 'string', array('length' => 255));
92
+			$table->addColumn('telefax', 'string', array('length' => 255));
93
+			$table->addColumn('website', 'string', array('length' => 255));
94
+			$table->addColumn('longitude', 'decimal', array('precision' => 8, 'scale' => 6, 'notnull' => false));
95
+			$table->addColumn('latitude', 'decimal', array('precision' => 8, 'scale' => 6, 'notnull' => false));
96
+			$table->addColumn('flag', 'integer', []);
97
+			$table->addColumn('pos', 'smallint', []);
98
+			$table->addColumn('mtime', 'datetime', []);
99
+			$table->addColumn('ctime', 'datetime', []);
100
+			$table->addColumn('editor', 'string', array('length' => 255));
101
+
102
+			$table->setPrimaryKey(array('id'), 'pk_fosad_id');
103
+			$table->addIndex(array('parentid'), 'idx_fosad_pid');
104
+			$table->addIndex(array('lastname', 'firstname'), 'idx_fosad_last_first');
105
+			$table->addIndex(array('postal', 'address1'), 'idx_fosad_post_addr1');
106
+			$table->addIndex(array('postal', 'city'), 'idx_fosad_post_city');
107
+			$table->addIndex(array('address1'), 'idx_fosad_address1');
108
+			$table->addIndex(array('city'), 'idx_fosad_city');
109
+			$table->addIndex(array('email'), 'idx_fosad_email');
110
+
111
+			$table->addForeignKeyConstraint('fos_user', array('parentid'), array('id'),
112
+				array('onUpdate' => 'CASCADE', 'onDelete' => 'CASCADE'), 'fk_fosad_pid');
113 113
 
114 114
 			return $schema;
115 115
 		},
116 116
 
117
-		'fos_user_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
117
+		'fos_user_list_type' => function(\Doctrine\DBAL\Schema\Schema $schema) {
118 118
 
119
-			$table = $schema->createTable( 'fos_user_list_type' );
119
+			$table = $schema->createTable('fos_user_list_type');
120 120
 
121
-			$table->addColumn( 'id', 'integer', array( 'autoincrement' => true ) );
122
-			$table->addColumn( 'siteid', 'integer', [] );
123
-			$table->addColumn( 'domain', 'string', array( 'length' => 32 ) );
124
-			$table->addColumn( 'code', 'string', array( 'length' => 32 ) );
125
-			$table->addColumn( 'label', 'string', array( 'length' => 255 ) );
126
-			$table->addColumn( 'pos', 'integer', [] );
127
-			$table->addColumn( 'status', 'smallint', [] );
128
-			$table->addColumn( 'mtime', 'datetime', [] );
129
-			$table->addColumn( 'ctime', 'datetime', [] );
130
-			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
121
+			$table->addColumn('id', 'integer', array('autoincrement' => true));
122
+			$table->addColumn('siteid', 'integer', []);
123
+			$table->addColumn('domain', 'string', array('length' => 32));
124
+			$table->addColumn('code', 'string', array('length' => 32));
125
+			$table->addColumn('label', 'string', array('length' => 255));
126
+			$table->addColumn('pos', 'integer', []);
127
+			$table->addColumn('status', 'smallint', []);
128
+			$table->addColumn('mtime', 'datetime', []);
129
+			$table->addColumn('ctime', 'datetime', []);
130
+			$table->addColumn('editor', 'string', array('length' => 255));
131 131
 
132
-			$table->setPrimaryKey( array( 'id' ), 'pk_foslity_id' );
133
-			$table->addUniqueIndex( array( 'siteid', 'domain', 'code' ), 'unq_foslity_sid_dom_code' );
134
-			$table->addIndex( array( 'siteid', 'status', 'pos' ), 'idx_foslity_sid_status_pos' );
135
-			$table->addIndex( array( 'siteid', 'label' ), 'idx_foslity_sid_label' );
136
-			$table->addIndex( array( 'siteid', 'code' ), 'idx_foslity_sid_code' );
132
+			$table->setPrimaryKey(array('id'), 'pk_foslity_id');
133
+			$table->addUniqueIndex(array('siteid', 'domain', 'code'), 'unq_foslity_sid_dom_code');
134
+			$table->addIndex(array('siteid', 'status', 'pos'), 'idx_foslity_sid_status_pos');
135
+			$table->addIndex(array('siteid', 'label'), 'idx_foslity_sid_label');
136
+			$table->addIndex(array('siteid', 'code'), 'idx_foslity_sid_code');
137 137
 
138 138
 			return $schema;
139 139
 		},
140 140
 
141
-		'fos_user_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
142
-
143
-			$table = $schema->createTable( 'fos_user_list' );
144
-
145
-			$table->addColumn( 'id', 'integer', array( 'autoincrement' => true ) );
146
-			$table->addColumn( 'parentid', 'integer', [] );
147
-			$table->addColumn( 'siteid', 'integer', [] );
148
-			$table->addColumn( 'typeid', 'integer', [] );
149
-			$table->addColumn( 'domain', 'string', array( 'length' => 32 ) );
150
-			$table->addColumn( 'refid', 'string', array( 'length' => 32 ) );
151
-			$table->addColumn( 'start', 'datetime', array( 'notnull' => false ) );
152
-			$table->addColumn( 'end', 'datetime', array( 'notnull' => false ) );
153
-			$table->addColumn( 'config', 'text', array( 'length' => 0xffff ) );
154
-			$table->addColumn( 'pos', 'integer', [] );
155
-			$table->addColumn( 'status', 'smallint', [] );
156
-			$table->addColumn( 'mtime', 'datetime', [] );
157
-			$table->addColumn( 'ctime', 'datetime', [] );
158
-			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
159
-
160
-			$table->setPrimaryKey( array( 'id' ), 'pk_fosli_id' );
161
-			$table->addUniqueIndex( array( 'siteid', 'domain', 'refid', 'typeid', 'parentid' ), 'unq_fosli_sid_dm_rid_tid_pid' );
162
-			$table->addIndex( array( 'siteid', 'status', 'start', 'end' ), 'idx_fosli_sid_stat_start_end' );
163
-			$table->addIndex( array( 'parentid', 'siteid', 'refid', 'domain', 'typeid' ), 'idx_fosli_pid_sid_rid_dom_tid' );
164
-			$table->addIndex( array( 'parentid', 'siteid', 'start' ), 'idx_fosli_pid_sid_start' );
165
-			$table->addIndex( array( 'parentid', 'siteid', 'end' ), 'idx_fosli_pid_sid_end' );
166
-			$table->addIndex( array( 'parentid', 'siteid', 'pos' ), 'idx_fosli_pid_sid_pos' );
167
-
168
-			$table->addForeignKeyConstraint( 'fos_user', array( 'parentid' ), array( 'id' ),
169
-				array( 'onUpdate' => 'CASCADE', 'onDelete' => 'CASCADE' ), 'fk_fosli_pid' );
170
-
171
-			$table->addForeignKeyConstraint( 'fos_user_list_type', array( 'typeid' ), array( 'id' ),
172
-				array( 'onUpdate' => 'CASCADE', 'onDelete' => 'CASCADE' ), 'fk_fosli_typeid' );
141
+		'fos_user_list' => function(\Doctrine\DBAL\Schema\Schema $schema) {
142
+
143
+			$table = $schema->createTable('fos_user_list');
144
+
145
+			$table->addColumn('id', 'integer', array('autoincrement' => true));
146
+			$table->addColumn('parentid', 'integer', []);
147
+			$table->addColumn('siteid', 'integer', []);
148
+			$table->addColumn('typeid', 'integer', []);
149
+			$table->addColumn('domain', 'string', array('length' => 32));
150
+			$table->addColumn('refid', 'string', array('length' => 32));
151
+			$table->addColumn('start', 'datetime', array('notnull' => false));
152
+			$table->addColumn('end', 'datetime', array('notnull' => false));
153
+			$table->addColumn('config', 'text', array('length' => 0xffff));
154
+			$table->addColumn('pos', 'integer', []);
155
+			$table->addColumn('status', 'smallint', []);
156
+			$table->addColumn('mtime', 'datetime', []);
157
+			$table->addColumn('ctime', 'datetime', []);
158
+			$table->addColumn('editor', 'string', array('length' => 255));
159
+
160
+			$table->setPrimaryKey(array('id'), 'pk_fosli_id');
161
+			$table->addUniqueIndex(array('siteid', 'domain', 'refid', 'typeid', 'parentid'), 'unq_fosli_sid_dm_rid_tid_pid');
162
+			$table->addIndex(array('siteid', 'status', 'start', 'end'), 'idx_fosli_sid_stat_start_end');
163
+			$table->addIndex(array('parentid', 'siteid', 'refid', 'domain', 'typeid'), 'idx_fosli_pid_sid_rid_dom_tid');
164
+			$table->addIndex(array('parentid', 'siteid', 'start'), 'idx_fosli_pid_sid_start');
165
+			$table->addIndex(array('parentid', 'siteid', 'end'), 'idx_fosli_pid_sid_end');
166
+			$table->addIndex(array('parentid', 'siteid', 'pos'), 'idx_fosli_pid_sid_pos');
167
+
168
+			$table->addForeignKeyConstraint('fos_user', array('parentid'), array('id'),
169
+				array('onUpdate' => 'CASCADE', 'onDelete' => 'CASCADE'), 'fk_fosli_pid');
170
+
171
+			$table->addForeignKeyConstraint('fos_user_list_type', array('typeid'), array('id'),
172
+				array('onUpdate' => 'CASCADE', 'onDelete' => 'CASCADE'), 'fk_fosli_typeid');
173 173
 
174 174
 			return $schema;
175 175
 		},
176 176
 
177
-		'fos_user_property_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
177
+		'fos_user_property_type' => function(\Doctrine\DBAL\Schema\Schema $schema) {
178 178
 
179
-			$table = $schema->createTable( 'fos_user_property_type' );
179
+			$table = $schema->createTable('fos_user_property_type');
180 180
 
181
-			$table->addColumn( 'id', 'integer', array( 'autoincrement' => true ) );
182
-			$table->addColumn( 'siteid', 'integer', [] );
183
-			$table->addColumn( 'domain', 'string', array( 'length' => 32 ) );
184
-			$table->addColumn( 'code', 'string', array( 'length' => 32 ) );
185
-			$table->addColumn( 'label', 'string', array( 'length' => 255 ) );
186
-			$table->addColumn( 'pos', 'integer', [] );
187
-			$table->addColumn( 'status', 'smallint', [] );
188
-			$table->addColumn( 'mtime', 'datetime', [] );
189
-			$table->addColumn( 'ctime', 'datetime', [] );
190
-			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
181
+			$table->addColumn('id', 'integer', array('autoincrement' => true));
182
+			$table->addColumn('siteid', 'integer', []);
183
+			$table->addColumn('domain', 'string', array('length' => 32));
184
+			$table->addColumn('code', 'string', array('length' => 32));
185
+			$table->addColumn('label', 'string', array('length' => 255));
186
+			$table->addColumn('pos', 'integer', []);
187
+			$table->addColumn('status', 'smallint', []);
188
+			$table->addColumn('mtime', 'datetime', []);
189
+			$table->addColumn('ctime', 'datetime', []);
190
+			$table->addColumn('editor', 'string', array('length' => 255));
191 191
 
192
-			$table->setPrimaryKey( array( 'id' ), 'pk_fosprty_id' );
193
-			$table->addUniqueIndex( array( 'siteid', 'domain', 'code' ), 'unq_fosprty_sid_dom_code' );
194
-			$table->addIndex( array( 'siteid', 'status', 'pos' ), 'idx_fosprty_sid_status_pos' );
195
-			$table->addIndex( array( 'siteid', 'label' ), 'idx_fosprty_sid_label' );
196
-			$table->addIndex( array( 'siteid', 'code' ), 'idx_fosprty_sid_code' );
192
+			$table->setPrimaryKey(array('id'), 'pk_fosprty_id');
193
+			$table->addUniqueIndex(array('siteid', 'domain', 'code'), 'unq_fosprty_sid_dom_code');
194
+			$table->addIndex(array('siteid', 'status', 'pos'), 'idx_fosprty_sid_status_pos');
195
+			$table->addIndex(array('siteid', 'label'), 'idx_fosprty_sid_label');
196
+			$table->addIndex(array('siteid', 'code'), 'idx_fosprty_sid_code');
197 197
 
198 198
 			return $schema;
199 199
 		},
200 200
 
201
-		'fos_user_property' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
201
+		'fos_user_property' => function(\Doctrine\DBAL\Schema\Schema $schema) {
202 202
 
203
-			$table = $schema->createTable( 'fos_user_property' );
203
+			$table = $schema->createTable('fos_user_property');
204 204
 
205
-			$table->addColumn( 'id', 'integer', array( 'autoincrement' => true ) );
206
-			$table->addColumn( 'siteid', 'integer', [] );
207
-			$table->addColumn( 'parentid', 'integer', [] );
208
-			$table->addColumn( 'typeid', 'integer', [] );
209
-			$table->addColumn( 'langid', 'string', array( 'length' => 5, 'notnull' => false ) );
210
-			$table->addColumn( 'value', 'string', array( 'length' => 255 ) );
211
-			$table->addColumn( 'mtime', 'datetime', [] );
212
-			$table->addColumn( 'ctime', 'datetime', [] );
213
-			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
205
+			$table->addColumn('id', 'integer', array('autoincrement' => true));
206
+			$table->addColumn('siteid', 'integer', []);
207
+			$table->addColumn('parentid', 'integer', []);
208
+			$table->addColumn('typeid', 'integer', []);
209
+			$table->addColumn('langid', 'string', array('length' => 5, 'notnull' => false));
210
+			$table->addColumn('value', 'string', array('length' => 255));
211
+			$table->addColumn('mtime', 'datetime', []);
212
+			$table->addColumn('ctime', 'datetime', []);
213
+			$table->addColumn('editor', 'string', array('length' => 255));
214 214
 
215
-			$table->setPrimaryKey( array( 'id' ), 'pk_fospr_id' );
216
-			$table->addUniqueIndex( array( 'parentid', 'siteid', 'typeid', 'langid', 'value' ), 'unq_fospr_sid_tid_lid_value' );
217
-			$table->addIndex( array( 'siteid', 'langid' ), 'idx_fospr_sid_langid' );
218
-			$table->addIndex( array( 'siteid', 'value' ), 'idx_fospr_sid_value' );
219
-			$table->addIndex( array( 'typeid' ), 'fk_fospr_typeid' );
220
-			$table->addIndex( array( 'parentid' ), 'fk_fospr_pid' );
215
+			$table->setPrimaryKey(array('id'), 'pk_fospr_id');
216
+			$table->addUniqueIndex(array('parentid', 'siteid', 'typeid', 'langid', 'value'), 'unq_fospr_sid_tid_lid_value');
217
+			$table->addIndex(array('siteid', 'langid'), 'idx_fospr_sid_langid');
218
+			$table->addIndex(array('siteid', 'value'), 'idx_fospr_sid_value');
219
+			$table->addIndex(array('typeid'), 'fk_fospr_typeid');
220
+			$table->addIndex(array('parentid'), 'fk_fospr_pid');
221 221
 
222
-			$table->addForeignKeyConstraint( 'fos_user', array( 'parentid' ), array( 'id' ),
223
-				array( 'onUpdate' => 'CASCADE', 'onDelete' => 'CASCADE' ), 'fk_fospr_pid' );
222
+			$table->addForeignKeyConstraint('fos_user', array('parentid'), array('id'),
223
+				array('onUpdate' => 'CASCADE', 'onDelete' => 'CASCADE'), 'fk_fospr_pid');
224 224
 
225
-			$table->addForeignKeyConstraint( 'fos_user_property_type', array( 'typeid' ), array( 'id' ),
226
-				array( 'onUpdate' => 'CASCADE', 'onDelete' => 'CASCADE' ), 'fk_fospr_typeid' );
225
+			$table->addForeignKeyConstraint('fos_user_property_type', array('typeid'), array('id'),
226
+				array('onUpdate' => 'CASCADE', 'onDelete' => 'CASCADE'), 'fk_fospr_typeid');
227 227
 
228 228
 			return $schema;
229 229
 		},
Please login to merge, or discard this patch.