更新若干
This commit is contained in:
1 parent
54c90072fb
commit
5682069553
59 files changed
+3813
-1617
No files matched your search
@@ -0,0 +1,17 @@
|
||||
SET @sql := CONCAT(
|
||||
'ALTER TABLE `yz_system_tenant_package` ',
|
||||
IF(
|
||||
(SELECT COUNT(*) FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE()
|
||||
AND TABLE_NAME = 'yz_system_tenant_package'
|
||||
AND COLUMN_NAME = 'can_purchase') = 0,
|
||||
'ADD COLUMN `can_purchase` TINYINT NOT NULL DEFAULT 1 COMMENT ''1=允许租户购买 0=仅后台指派'' AFTER `allow_repurchase`',
|
||||
''
|
||||
)
|
||||
);
|
||||
|
||||
SET @sql := IF(RIGHT(TRIM(@sql), 1) = '`', 'SELECT 1 AS column_already_exists', @sql);
|
||||
|
||||
PREPARE stmt FROM @sql;
|
||||
EXECUTE stmt;
|
||||
DEALLOCATE PREPARE stmt;
|
||||
Reference in new issue
Block a user