Skip to content

Commit bede995

Browse files
authored
Merge pull request #2127 from nextcloud/carl/port-away-changeColumn
refactor: Port away from deprecated changeColumn method
2 parents 58b3479 + 3100f41 commit bede995

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

lib/Migration/Version0022Date20220703115023.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -94,25 +94,25 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
9494

9595
if ($schema->hasTable('circles_membership')) {
9696
$table = $schema->getTable('circles_membership');
97-
$table->changeColumn(
97+
$table->modifyColumn(
9898
'circle_id', [
9999
'notnull' => true,
100100
'length' => 31,
101101
]
102102
);
103-
$table->changeColumn(
103+
$table->modifyColumn(
104104
'single_id', [
105105
'notnull' => true,
106106
'length' => 31,
107107
]
108108
);
109-
$table->changeColumn(
109+
$table->modifyColumn(
110110
'inheritance_first', [
111111
'notnull' => true,
112112
'length' => 31,
113113
]
114114
);
115-
$table->changeColumn(
115+
$table->modifyColumn(
116116
'inheritance_last', [
117117
'notnull' => true,
118118
'length' => 31,
@@ -123,19 +123,19 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
123123

124124
if ($schema->hasTable('circles_mount')) {
125125
$table = $schema->getTable('circles_mount');
126-
$table->changeColumn(
126+
$table->modifyColumn(
127127
'mount_id', [
128128
'notnull' => true,
129129
'length' => 31,
130130
]
131131
);
132-
$table->changeColumn(
132+
$table->modifyColumn(
133133
'circle_id', [
134134
'notnull' => true,
135135
'length' => 31,
136136
]
137137
);
138-
$table->changeColumn(
138+
$table->modifyColumn(
139139
'single_id', [
140140
'notnull' => true,
141141
'length' => 31,
@@ -146,13 +146,13 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
146146

147147
if ($schema->hasTable('circles_mountpoint')) {
148148
$table = $schema->getTable('circles_mountpoint');
149-
$table->changeColumn(
149+
$table->modifyColumn(
150150
'mount_id', [
151151
'notnull' => true,
152152
'length' => 31,
153153
]
154154
);
155-
$table->changeColumn(
155+
$table->modifyColumn(
156156
'single_id', [
157157
'notnull' => true,
158158
'length' => 31,
@@ -163,13 +163,13 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
163163

164164
if ($schema->hasTable('circles_share_lock')) {
165165
$table = $schema->getTable('circles_share_lock');
166-
$table->changeColumn(
166+
$table->modifyColumn(
167167
'item_id', [
168168
'notnull' => true,
169169
'length' => 31,
170170
]
171171
);
172-
$table->changeColumn(
172+
$table->modifyColumn(
173173
'circle_id', [
174174
'notnull' => true,
175175
'length' => 31,

lib/Migration/Version0024Date20220203123901.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
4545

4646
if ($schema->hasTable('circles_token')) {
4747
$table = $schema->getTable('circles_token');
48-
$table->changeColumn(
48+
$table->modifyColumn(
4949
'password', [
5050
'length' => 127
5151
]
@@ -54,7 +54,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
5454

5555
if ($schema->hasTable('circles_member')) {
5656
$table = $schema->getTable('circles_member');
57-
$table->changeColumn(
57+
$table->modifyColumn(
5858
'instance',
5959
[
6060
'default' => '',
@@ -66,7 +66,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
6666

6767
if ($schema->hasTable('circles_circle')) {
6868
$table = $schema->getTable('circles_circle');
69-
$table->changeColumn(
69+
$table->modifyColumn(
7070
'display_name',
7171
[
7272
'notnull' => false,

0 commit comments

Comments
 (0)