blob: 889e17f0fc6250cd4b6391be37d76a8e5a4a8bf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
class Step345WikiAncestor extends Migration
{
public function description()
{
return 'Adds column ancestor to table wiki.';
}
public function up()
{
$query = "ALTER TABLE `wiki`
ADD COLUMN `ancestor` VARCHAR(255) CHARACTER SET latin1 COLLATE latin1_bin NULL DEFAULT NULL AFTER `body`;";
DBManager::get()->exec($query);
}
public function down()
{
$query = "ALTER TABLE `wiki` DROP COLUMN `ancestor`";
DBManager::get()->exec($query);
}
}
|