mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-03 17:26:23 +01:00
Fixed rest of the migrations
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
* @var OTS_DB_MySQL $db
|
||||
*/
|
||||
|
||||
$up = function ($db) {
|
||||
$up = function () use ($db) {
|
||||
if ($db->hasColumn(TABLE_PREFIX . 'screenshots', 'name')) {
|
||||
$db->dropColumn(TABLE_PREFIX . 'screenshots', 'name');
|
||||
}
|
||||
};
|
||||
|
||||
$up = function ($db) {
|
||||
$up = function () use ($db) {
|
||||
if (!$db->hasColumn(TABLE_PREFIX . 'screenshots', 'name')) {
|
||||
$db->addColumn(TABLE_PREFIX . 'screenshots', 'name', 'VARCHAR(30) NOT NULL');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user