Skip to content

Commit 07e70a3

Browse files
migrate sql update
1 parent a41b68e commit 07e70a3

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

migrations/mysqldb/m190904_025251_fecshop_tables.php

+11-8
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,11 @@
77
*/
88
class m190904_025251_fecshop_tables extends Migration
99
{
10+
1011
/**
1112
* {@inheritdoc}
1213
*/
1314
public function safeUp()
14-
{
15-
16-
}
17-
18-
/**
19-
* {@inheritdoc}
20-
*/
21-
public function safeDown()
2215
{
2316
$sql = "
2417
CREATE TABLE IF NOT EXISTS `extensions` (
@@ -142,6 +135,16 @@ public function safeDown()
142135
$this->execute("INSERT INTO `admin_role_url_key` (`role_id`, `url_key_id`, `created_at`, `updated_at`) VALUES (4, " . $lastInsertId . ", 1567162984, 1567162984)");
143136

144137

138+
}
139+
140+
/**
141+
* {@inheritdoc}
142+
*/
143+
public function safeDown()
144+
{
145+
echo "m190904_025251_fecshop_tables cannot be reverted.\n";
146+
147+
return false;
145148

146149
}
147150

0 commit comments

Comments
 (0)