add: init sql
This commit is contained in:
parent
23ef9dbff1
commit
24c7fc8857
@ -0,0 +1,2 @@
|
||||
-- Remove status column from redemption_code table
|
||||
ALTER TABLE `redemption_code` DROP COLUMN `status`;
|
||||
@ -0,0 +1,2 @@
|
||||
-- Add status column to redemption_code table
|
||||
ALTER TABLE `redemption_code` ADD COLUMN `status` TINYINT NOT NULL DEFAULT 1 COMMENT 'Status: 1=enabled, 0=disabled' AFTER `quantity`;
|
||||
2
initialize/migrate/database/02128_device_limit.down.sql
Normal file
2
initialize/migrate/database/02128_device_limit.down.sql
Normal file
@ -0,0 +1,2 @@
|
||||
-- Remove device limit configuration from system table
|
||||
DELETE FROM `system` WHERE `category` = 'register' AND `key` = 'DeviceLimit';
|
||||
3
initialize/migrate/database/02128_device_limit.up.sql
Normal file
3
initialize/migrate/database/02128_device_limit.up.sql
Normal file
@ -0,0 +1,3 @@
|
||||
-- Add device limit configuration to system table
|
||||
INSERT IGNORE INTO `system` (`id`, `category`, `key`, `value`, `type`, `desc`, `created_at`, `updated_at`)
|
||||
VALUES (43, 'register', 'DeviceLimit', '5', 'int', 'Device binding limit', NOW(), NOW());
|
||||
Loading…
x
Reference in New Issue
Block a user