Files
whale-town-end-v2/src/core/db/user_wallets/add-adventure-state.sql

9 lines
301 B
SQL

SET @ddl = IF(
EXISTS(SELECT 1 FROM information_schema.columns WHERE table_schema = DATABASE() AND table_name = 'user_wallets' AND column_name = 'adventure'),
'SELECT 1',
'ALTER TABLE user_wallets ADD COLUMN adventure JSON NULL'
);
PREPARE stmt FROM @ddl;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;