%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/mail.varak.net/SQL/mysql/
Upload File :
Create Path :
Current File : //www/varak.net/mail.varak.net/SQL/mysql/2018122300.sql

ALTER TABLE `filestore` ADD COLUMN `context` varchar(32) NOT NULL;
UPDATE `filestore` SET `context` = 'enigma';
ALTER TABLE `filestore` DROP FOREIGN KEY `user_id_fk_filestore`;
ALTER TABLE `filestore` DROP INDEX `uniqueness`;
ALTER TABLE `filestore` ADD UNIQUE INDEX `uniqueness` (`user_id`, `context`, `filename`);
ALTER TABLE `filestore` ADD CONSTRAINT `user_id_fk_filestore` FOREIGN KEY (`user_id`)
    REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE;

Zerion Mini Shell 1.0