2323
2424namespace OCA \Activity \Migration ;
2525
26- use Doctrine \DBAL \Types \Type ;
26+ use Doctrine \DBAL \Types \Types ;
2727use OCP \DB \ISchemaWrapper ;
2828use OCP \Migration \SimpleMigrationStep ;
2929use OCP \Migration \IOutput ;
@@ -43,7 +43,7 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
4343
4444 if (!$ schema ->hasTable ('activity ' )) {
4545 $ table = $ schema ->createTable ('activity ' );
46- $ table ->addColumn ('activity_id ' , Type ::BIGINT , [
46+ $ table ->addColumn ('activity_id ' , Types ::BIGINT , [
4747 'autoincrement ' => true ,
4848 'notnull ' => true ,
4949 'length ' => 20 ,
@@ -100,7 +100,7 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
100100 'notnull ' => false ,
101101 'length ' => 255 ,
102102 ]);
103- $ table ->addColumn ('object_id ' , Type ::BIGINT , [
103+ $ table ->addColumn ('object_id ' , Types ::BIGINT , [
104104 'notnull ' => true ,
105105 'length ' => 20 ,
106106 'default ' => 0 ,
@@ -115,7 +115,7 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
115115
116116 if (!$ schema ->hasTable ('activity_mq ' )) {
117117 $ table = $ schema ->createTable ('activity_mq ' );
118- $ table ->addColumn ('mail_id ' , Type ::BIGINT , [
118+ $ table ->addColumn ('mail_id ' , Types ::BIGINT , [
119119 'autoincrement ' => true ,
120120 'notnull ' => true ,
121121 'length ' => 20 ,
@@ -156,5 +156,4 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
156156 }
157157 return $ schema ;
158158 }
159-
160159}
0 commit comments