Skip to content

Instantly share code, notes, and snippets.

@brandonsavage
Created September 21, 2012 20:16
Show Gist options
  • Select an option

  • Save brandonsavage/3763660 to your computer and use it in GitHub Desktop.

Select an option

Save brandonsavage/3763660 to your computer and use it in GitHub Desktop.
SQL to upgrade bouncer
ALTER TABLE `geoip_regions` ADD COLUMN `fallback_id` integer;
ALTER TABLE `geoip_regions` ADD CONSTRAINT `fallback_id_refs_id_e6bfe66d` FOREIGN KEY (`fallback_id`) REFERENCES `geoip_regions` (`id`);
CREATE INDEX `geoip_regions_e28329c2` ON `geoip_regions` (`fallback_id`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment