File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public function up(Schema $schema): void
22
22
23
23
//Copy the data from path to external_path and remove the path column
24
24
$ this ->addSql ('UPDATE attachments SET external_path=path ' );
25
- $ this ->addSql ('ALTER TABLE attachments DROP path ' );
25
+ $ this ->addSql ('ALTER TABLE attachments DROP COLUMN path ' );
26
26
27
27
28
28
$ this ->addSql ('UPDATE attachments SET internal_path=external_path WHERE external_path LIKE \'#%MEDIA#%% \' ESCAPE \'# \'' );
@@ -36,7 +36,7 @@ public function up(Schema $schema): void
36
36
public function down (Schema $ schema ): void
37
37
{
38
38
$ this ->addSql ('UPDATE attachments SET external_path=internal_path WHERE internal_path IS NOT NULL ' );
39
- $ this ->addSql ('ALTER TABLE attachments DROP internal_path ' );
39
+ $ this ->addSql ('ALTER TABLE attachments DROP COLUMN internal_path ' );
40
40
$ this ->addSql ('ALTER TABLE attachments RENAME COLUMN external_path TO path ' );
41
41
}
42
42
}
You can’t perform that action at this time.
0 commit comments