77
88namespace OCA \Activity \Migration ;
99
10- use Doctrine \DBAL \Types \Types ;
1110use OCP \DB \ISchemaWrapper ;
11+ use OCP \DB \Types ;
1212use OCP \Migration \IOutput ;
1313use OCP \Migration \SimpleMigrationStep ;
1414
@@ -32,55 +32,55 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
3232 'notnull ' => true ,
3333 'length ' => 20 ,
3434 ]);
35- $ table ->addColumn ('timestamp ' , ' integer ' , [
35+ $ table ->addColumn ('timestamp ' , Types:: INTEGER , [
3636 'notnull ' => true ,
3737 'length ' => 4 ,
3838 'default ' => 0 ,
3939 ]);
40- $ table ->addColumn ('priority ' , ' integer ' , [
40+ $ table ->addColumn ('priority ' , Types:: INTEGER , [
4141 'notnull ' => true ,
4242 'length ' => 4 ,
4343 'default ' => 0 ,
4444 ]);
45- $ table ->addColumn ('type ' , ' string ' , [
45+ $ table ->addColumn ('type ' , Types:: STRING , [
4646 'notnull ' => false ,
4747 'length ' => 255 ,
4848 ]);
49- $ table ->addColumn ('user ' , ' string ' , [
49+ $ table ->addColumn ('user ' , Types:: STRING , [
5050 'notnull ' => false ,
5151 'length ' => 64 ,
5252 ]);
53- $ table ->addColumn ('affecteduser ' , ' string ' , [
53+ $ table ->addColumn ('affecteduser ' , Types:: STRING , [
5454 'notnull ' => true ,
5555 'length ' => 64 ,
5656 ]);
57- $ table ->addColumn ('app ' , ' string ' , [
57+ $ table ->addColumn ('app ' , Types:: STRING , [
5858 'notnull ' => true ,
5959 'length ' => 32 ,
6060 ]);
61- $ table ->addColumn ('subject ' , ' string ' , [
61+ $ table ->addColumn ('subject ' , Types:: STRING , [
6262 'notnull ' => true ,
6363 'length ' => 255 ,
6464 ]);
65- $ table ->addColumn ('subjectparams ' , ' text ' , [
65+ $ table ->addColumn ('subjectparams ' , Types:: TEXT , [
6666 'notnull ' => true ,
6767 ]);
68- $ table ->addColumn ('message ' , ' string ' , [
68+ $ table ->addColumn ('message ' , Types:: STRING , [
6969 'notnull ' => false ,
7070 'length ' => 255 ,
7171 ]);
72- $ table ->addColumn ('messageparams ' , ' text ' , [
72+ $ table ->addColumn ('messageparams ' , Types:: TEXT , [
7373 'notnull ' => false ,
7474 ]);
75- $ table ->addColumn ('file ' , ' string ' , [
75+ $ table ->addColumn ('file ' , Types:: STRING , [
7676 'notnull ' => false ,
7777 'length ' => 4000 ,
7878 ]);
79- $ table ->addColumn ('link ' , ' string ' , [
79+ $ table ->addColumn ('link ' , Types:: STRING , [
8080 'notnull ' => false ,
8181 'length ' => 4000 ,
8282 ]);
83- $ table ->addColumn ('object_type ' , ' string ' , [
83+ $ table ->addColumn ('object_type ' , Types:: STRING , [
8484 'notnull ' => false ,
8585 'length ' => 255 ,
8686 ]);
@@ -105,33 +105,33 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
105105 'notnull ' => true ,
106106 'length ' => 20 ,
107107 ]);
108- $ table ->addColumn ('amq_timestamp ' , ' integer ' , [
108+ $ table ->addColumn ('amq_timestamp ' , Types:: INTEGER , [
109109 'notnull ' => true ,
110110 'length ' => 4 ,
111111 'default ' => 0 ,
112112 ]);
113- $ table ->addColumn ('amq_latest_send ' , ' integer ' , [
113+ $ table ->addColumn ('amq_latest_send ' , Types:: INTEGER , [
114114 'notnull ' => true ,
115115 'length ' => 4 ,
116116 'default ' => 0 ,
117117 ]);
118- $ table ->addColumn ('amq_type ' , ' string ' , [
118+ $ table ->addColumn ('amq_type ' , Types:: STRING , [
119119 'notnull ' => true ,
120120 'length ' => 255 ,
121121 ]);
122- $ table ->addColumn ('amq_affecteduser ' , ' string ' , [
122+ $ table ->addColumn ('amq_affecteduser ' , Types:: STRING , [
123123 'notnull ' => true ,
124124 'length ' => 64 ,
125125 ]);
126- $ table ->addColumn ('amq_appid ' , ' string ' , [
126+ $ table ->addColumn ('amq_appid ' , Types:: STRING , [
127127 'notnull ' => true ,
128128 'length ' => 255 ,
129129 ]);
130- $ table ->addColumn ('amq_subject ' , ' string ' , [
130+ $ table ->addColumn ('amq_subject ' , Types:: STRING , [
131131 'notnull ' => true ,
132132 'length ' => 255 ,
133133 ]);
134- $ table ->addColumn ('amq_subjectparams ' , ' text ' , [
134+ $ table ->addColumn ('amq_subjectparams ' , Types:: TEXT , [
135135 'notnull ' => true ,
136136 ]);
137137 $ table ->setPrimaryKey (['mail_id ' ]);
0 commit comments