aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/update/pre003392-1-intezmeny.sql
blob: 6b05754c6d97098f38bb16c361b2ab591261831e (plain)
1
2
3
4
5
6
7
8
9
10
11
DELIMITER $$
DROP PROCEDURE IF EXISTS upgrade_database_3392 $$
CREATE PROCEDURE upgrade_database_3392()
BEGIN
IF NOT EXISTS (
    SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA=DATABASE() and TABLE_NAME='zaradek' AND COLUMN_NAME='iktatoszam'
) THEN
    ALTER TABLE zaradek ADD iktatoszam VARCHAR(60) not null default '';
END IF;
END $$
CALL upgrade_database_3392();