blob: c616f6d4a313d99c4061ad9fdc8cbfba749d1186 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
DELIMITER $$
DROP PROCEDURE IF EXISTS upgrade_database_4531 $$
CREATE PROCEDURE upgrade_database_4531()
BEGIN
SET NAMES utf8 COLLATE utf8_hungarian_ci;
IF NOT EXISTS (SELECT * FROM information_schema.TABLES WHERE TABLE_SCHEMA=DATABASE() and TABLE_NAME='cimke') THEN
CREATE TABLE `cimke` (
`cimkeId` int(10) unsigned NOT NULL AUTO_INCREMENT,
`cimkeLeiras` varchar(16) NOT NULL,
PRIMARY KEY (`cimkeId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
END IF;
END $$
DELIMITER ;
CALL upgrade_database_4531();
|