Added missing database migration for config.
This commit is contained in:
parent
1b51cc99dc
commit
818f9fbb04
1 changed files with 20 additions and 0 deletions
20
database/2019_08_14_194510_create_config_table.php
Normal file
20
database/2019_08_14_194510_create_config_table.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
namespace Misuzu\DatabaseMigrations\CreateConfigTable;
|
||||
|
||||
use PDO;
|
||||
|
||||
function migrate_up(PDO $conn): void
|
||||
{
|
||||
$conn->exec("
|
||||
CREATE TABLE `msz_config` (
|
||||
`config_name` VARCHAR(100) NOT NULL COLLATE 'utf8mb4_bin',
|
||||
`config_value` BLOB NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`config_name`)
|
||||
) COLLATE='utf8mb4_bin' ENGINE=InnoDB;
|
||||
");
|
||||
}
|
||||
|
||||
function migrate_down(PDO $conn): void
|
||||
{
|
||||
$conn->exec("DROP TABLE `msz_config`;");
|
||||
}
|
Loading…
Reference in a new issue