From a80cfc77306f5af5b9f082f8b2912d6af2675f52 Mon Sep 17 00:00:00 2001 From: zero-24 Date: Wed, 1 Apr 2015 23:14:50 +0200 Subject: [PATCH] Update 3.4.0.sql --- .../admin/sql/updates/mysql/3.4.0.sql | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/src/com_weblinks/admin/sql/updates/mysql/3.4.0.sql b/src/com_weblinks/admin/sql/updates/mysql/3.4.0.sql index a8d6724..e52fac8 100644 --- a/src/com_weblinks/admin/sql/updates/mysql/3.4.0.sql +++ b/src/com_weblinks/admin/sql/updates/mysql/3.4.0.sql @@ -1,31 +1,5 @@ # This is a rollup of all database schema changes applied from 3.0.0 to 3.3.x -drop procedure if exists weblinks_schema_change; - -delimiter ';;' -create procedure weblinks_schema_change() begin - - /* delete columns if they exist */ - if exists(SELECT * FROM information_schema.columns WHERE table_name = '#__weblinks' AND column_name = 'sid') THEN - ALTER TABLE `#__weblinks` DROP COLUMN `sid`; - end if; - if exists(SELECT * FROM information_schema.columns WHERE table_name = '#__weblinks' AND column_name = 'date') THEN - ALTER TABLE `#__weblinks` DROP COLUMN `date`; - end if; - if exists(SELECT * FROM information_schema.columns WHERE table_name = '#__weblinks' AND column_name = 'archived') THEN - ALTER TABLE `#__weblinks` DROP COLUMN `archived`; - end if; - if exists(SELECT * FROM information_schema.columns WHERE table_name = '#__weblinks' AND column_name = 'approved') THEN - ALTER TABLE `#__weblinks` DROP COLUMN `approved`; - end if; - -end;; - -delimiter ';' -call weblinks_schema_change(); - -drop procedure if exists weblinks_schema_change; - ALTER TABLE `#__weblinks` ENGINE=InnoDB; ALTER TABLE `#__weblinks` ADD COLUMN `version` int(10) unsigned NOT NULL DEFAULT '1'; ALTER TABLE `#__weblinks` ADD COLUMN `images` text NOT NULL;