77a78e4a15
* Core: Implement broadcast texts. * Core: Get rid of db_script_strings table. * Core: Fix MaleText locales and db scripting improvements. * DB: Add broadcast texts and fix quest 2608. * Fixed FemaleText locales! * Move chat functions back to worldobject. * Replace all db_script_string ids. * Drop table db_script_string. * New database release.
22 lines
510 B
SQL
22 lines
510 B
SQL
DROP PROCEDURE IF EXISTS add_migration;
|
|
delimiter ??
|
|
CREATE PROCEDURE `add_migration`()
|
|
BEGIN
|
|
DECLARE v INT DEFAULT 1;
|
|
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20170929190759');
|
|
IF v=0 THEN
|
|
INSERT INTO `migrations` VALUES ('20170929190759');
|
|
-- Add your query below.
|
|
|
|
|
|
ALTER TABLE `item_instance`
|
|
CHANGE COLUMN `text` `text` INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `durability`;
|
|
|
|
|
|
-- End of migration.
|
|
END IF;
|
|
END??
|
|
delimiter ;
|
|
CALL add_migration();
|
|
DROP PROCEDURE IF EXISTS add_migration;
|