You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
1.1 KiB
SQL
12 lines
1.1 KiB
SQL
-- Import this file before deploying the user feature restriction code.
|
|
ALTER TABLE `user`
|
|
ADD COLUMN IF NOT EXISTS `restrict_recharge` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 AFTER `user_tcp_limit`,
|
|
ADD COLUMN IF NOT EXISTS `restrict_balance_purchase` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 AFTER `restrict_recharge`,
|
|
ADD COLUMN IF NOT EXISTS `restrict_subscription` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 AFTER `restrict_balance_purchase`,
|
|
ADD COLUMN IF NOT EXISTS `restrict_invite` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 AFTER `restrict_subscription`,
|
|
ADD COLUMN IF NOT EXISTS `restrict_ticket` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 AFTER `restrict_invite`,
|
|
ADD COLUMN IF NOT EXISTS `restrict_transaction_records` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 AFTER `restrict_ticket`,
|
|
ADD COLUMN IF NOT EXISTS `restriction_reason` varchar(255) NOT NULL DEFAULT '' AFTER `restrict_transaction_records`,
|
|
ADD COLUMN IF NOT EXISTS `restriction_updated_at` bigint(20) UNSIGNED NOT NULL DEFAULT 0 AFTER `restriction_reason`,
|
|
ADD COLUMN IF NOT EXISTS `restriction_operator_id` int(11) UNSIGNED NOT NULL DEFAULT 0 AFTER `restriction_updated_at`;
|