Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. BEGIN;
  2. --
  3. -- Change Meta options on revision
  4. --
  5. --
  6. -- Change Meta options on version
  7. --
  8. --
  9. -- Remove field manager_slug from revision
  10. --
  11. ALTER TABLE `reversion_revision` DROP COLUMN `manager_slug`;
  12. --
  13. -- Add field db to version
  14. --
  15. ALTER TABLE `reversion_version` ADD COLUMN `db` varchar(191) DEFAULT NOT NULL;
  16. ALTER TABLE `reversion_version` ALTER COLUMN `db` DROP DEFAULT;
  17. --
  18. -- Alter field date_created on revision
  19. --
  20. --
  21. -- Alter field object_id on version
  22. --
  23. ALTER TABLE `reversion_version` MODIFY `object_id` varchar(191) NOT NULL;
  24. --
  25. -- Remove field object_id_int from version
  26. --
  27. ALTER TABLE `reversion_version` DROP COLUMN `object_id_int`;
  28. --
  29. -- Alter unique_together for version (1 constraint(s))
  30. --
  31. ALTER TABLE `reversion_version` ADD CONSTRAINT `reversion_version_db_content_type_id_objec_b2c54f65_uniq` UNIQUE (`db`, `content_type_id`, `object_id`, `revision_id`);
  32. COMMIT;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement