Skip to content

Commit

Permalink
FIX: Schema File Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aljawaid committed May 30, 2023
1 parent b81dede commit 2aa97fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Schema/Mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ function version_1(PDO $pdo)
PRIMARY KEY(id)
) COMMENT "Template Manager plugin table" ENGINE = InnoDB CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci;');

// IF THE PLUGIN IS NOT INSTALLING, DELETE IF THIS COLUMN EXISTS
$pdo->exec("ALTER TABLE `predefined_task_descriptions` ADD COLUMN `topic` TEXT, ADD COLUMN `note` TEXT, ADD COLUMN `instructions` TEXT");
/* IF THE PLUGIN IS NOT INSTALLING, DELETE IF THIS COLUMN EXISTS */
$pdo->exec('ALTER TABLE `predefined_task_descriptions` ADD COLUMN `topic` TEXT, ADD COLUMN `note` TEXT, ADD COLUMN `instructions` TEXT');
}
2 changes: 0 additions & 2 deletions Schema/Sqlite.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ function version_1(PDO $pdo)
');

$pdo->exec("ALTER TABLE predefined_task_descriptions ADD COLUMN topic TEXT");

$pdo->exec("ALTER TABLE predefined_task_descriptions ADD COLUMN note TEXT");

$pdo->exec("ALTER TABLE predefined_task_descriptions ADD COLUMN instructions TEXT");
}

0 comments on commit 2aa97fb

Please sign in to comment.