PageRenderTime 44ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/database/patches/12.php

https://bitbucket.org/pooshonk/esw
PHP | 55 lines | 39 code | 16 blank | 0 comment | 0 complexity | 6bb879f9893368d87c59fabcbadc360c MD5 | raw file
Possible License(s): LGPL-2.1
  1. RENAME TABLE `templates_page` TO `templates` ;
  2. ALTER TABLE `templates` DROP `name` ,
  3. DROP `changed` ,
  4. DROP `backend_template` ;
  5. ALTER TABLE `templates` ADD `html` LONGTEXT NOT NULL;
  6. ALTER TABLE `templates_backend` ADD `changed` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP;
  7. ALTER TABLE `templates_backend` ADD `template` INT NOT NULL;
  8. DELETE FROM `templates` WHERE `templates`.`ID` =1 LIMIT 1 ;
  9. DELETE FROM `templates` WHERE `templates`.`ID` =10 LIMIT 1 ;
  10. DELETE FROM `templates` WHERE `templates`.`ID` =11 LIMIT 1 ;
  11. DELETE FROM `templates` WHERE `templates`.`ID` =13 LIMIT 1 ;
  12. DELETE FROM `templates` WHERE `templates`.`ID` =15 LIMIT 1 ;
  13. UPDATE `templates_backend` SET `template` = '17' WHERE `templates_backend`.`ID` =1 LIMIT 1 ;
  14. UPDATE `templates_backend` SET `template` = '14' WHERE `templates_backend`.`ID` =2 LIMIT 1 ;
  15. INSERT INTO `navca`.`system_messages` (
  16. `ID` ,
  17. `type` ,
  18. `code` ,
  19. `heading` ,
  20. `message` ,
  21. `customisable` ,
  22. `customless_message`
  23. )
  24. VALUES (
  25. NULL , 'message', 'template00001', 'New template created', 'Your new template has been created, you can customise it using the options below.', '0', ''
  26. );
  27. INSERT INTO `navca`.`system_messages` (
  28. `ID` ,
  29. `type` ,
  30. `code` ,
  31. `heading` ,
  32. `message` ,
  33. `customisable` ,
  34. `customless_message`
  35. )
  36. VALUES (
  37. NULL , 'message', 'template00002', 'Changes saved', 'The changes to the template have been saved.', '0', ''
  38. );
  39. UPDATE `settings` SET `value` = '2' WHERE `settings`.`key` ='default_template.id' LIMIT 1 ;