1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
-- Add Missin column
-- this update may release a column already exists error in some installations
This commit is contained in:
DanielnetoDotCom 2021-04-12 15:35:15 -03:00
parent 92bb1788b8
commit b3efc7aea8
2 changed files with 10 additions and 1 deletions

View file

@ -564,7 +564,9 @@ CREATE TABLE IF NOT EXISTS `users_extra_info` (
`created` DATETIME NULL, `created` DATETIME NULL,
`modified` DATETIME NULL, `modified` DATETIME NULL,
`status` CHAR(1) NOT NULL DEFAULT 'a', `status` CHAR(1) NOT NULL DEFAULT 'a',
PRIMARY KEY (`id`)) `order` INT NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
INDEX `ordersortusers_extra_info` USING BTREE (`order`))
ENGINE = InnoDB; ENGINE = InnoDB;
ALTER TABLE `category_type_cache` ALTER TABLE `category_type_cache`

View file

@ -0,0 +1,7 @@
-- Add Missin column
-- this update may release a column already exists error in some installations
ALTER TABLE `users`
ADD COLUMN `users_extra_info` `order` INT NOT NULL DEFAULT 0;
UPDATE configurations SET version = '10.6', modified = now() WHERE id = 1;