This repository has been archived by the owner on Mar 15, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump migration number, remove non-suffixed waffle table
- Loading branch information
Allen Short
committed
Feb 20, 2012
1 parent
6c9dc86
commit a3eb501
Showing
2 changed files
with
17 additions
and
22 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
ALTER TABLE waffle_flag RENAME TO waffle_flag_amo; | ||
ALTER TABLE waffle_flag_users RENAME TO waffle_flag_amo_users; | ||
ALTER TABLE waffle_flag_groups RENAME TO waffle_flag_amo_groups; | ||
ALTER TABLE waffle_switch RENAME TO waffle_switch_amo; | ||
ALTER TABLE waffle_sample RENAME TO waffle_sample_amo; | ||
CREATE TABLE waffle_flag_mkt LIKE waffle_flag_amo; | ||
CREATE TABLE waffle_flag_mkt_users LIKE waffle_flag_amo_users; | ||
CREATE TABLE waffle_flag_mkt_groups LIKE waffle_flag_amo_groups; | ||
CREATE TABLE waffle_switch_mkt LIKE waffle_switch_amo; | ||
CREATE TABLE waffle_sample_mkt LIKE waffle_sample_amo; | ||
|
||
|
||
INSERT INTO waffle_flag_mkt SELECT * FROM waffle_flag_amo; | ||
INSERT INTO waffle_flag_mkt_users SELECT * FROM waffle_flag_amo_users; | ||
INSERT INTO waffle_flag_mkt_groups SELECT * FROM waffle_flag_amo_groups; | ||
INSERT INTO waffle_switch_mkt SELECT * FROM waffle_switch_amo; | ||
INSERT INTO waffle_sample_mkt SELECT * FROM waffle_sample_amo; |