add: init sql
This commit is contained in:
@@ -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`;
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- Remove device limit configuration from system table
|
||||||
|
DELETE FROM `system` WHERE `category` = 'register' AND `key` = 'DeviceLimit';
|
||||||
@@ -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());
|
||||||
Reference in New Issue
Block a user