/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;


LOCK TABLES `news_article_category` WRITE;

ALTER TABLE `news_article_category`
ADD COLUMN `slug` VARCHAR(50) NOT NULL AFTER `title`,
ADD INDEX `fk_news_article_category_site1_idx` (`site_id` ASC),
ADD INDEX `idx_slug` (`slug` ASC),
DROP INDEX `fk_news_article_category_site1_idx`;

UNLOCK TABLES;

LOCK TABLES `news_article_category` WRITE;
/*!40000 ALTER TABLE `news_article_category` DISABLE KEYS */;

INSERT INTO `news_article_category` (`site_id`, `title`, `slug`)
VALUES
  (10,'Charity Events','charity-events'),
  (10,'Christmas','christmas'),
  (10,'Competitions','competitions'),
  (10,'Family Events','family-events'),
  (10,'Festivals','festivals'),
  (10,'Local Business','local-business'),
  (10,'Music Live','music-live'),
  (10,'Non-Racing Events','non-racing-events'),
  (10,'Partners & Sponsors','partners-and-sponsors'),
  (10,'Racing','racing');

/*!40000 ALTER TABLE `news_article_category` ENABLE KEYS */;
UNLOCK TABLES;

/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;