mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-20 20:51:50 +01:00
Migrate cycle
This commit is contained in:
parent
1e91310f6a
commit
2a52ca8aab
11
tools/migrate_cycle.php
Normal file
11
tools/migrate_cycle.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
require dirname(__FILE__) . '/inc/cli.php';
|
||||
|
||||
# edited_at column was using DATETIME when time column uses INT(11). This script solves that.
|
||||
|
||||
$boards = listBoards(TRUE);
|
||||
#$boards = array('test2');
|
||||
|
||||
foreach ($boards as $i => $b) {
|
||||
query(sprintf('ALTER TABLE ``posts_%s`` ADD COLUMN cycle INT(1) NOT NULL AFTER locked', $b));
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user