Created
September 25, 2012 22:38
-
-
Save ruckus/3784893 to your computer and use it in GitHub Desktop.
Sample SQL migration file
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
// Generate the timestamp for the filename from the command line like: | |
// php -r "echo date('YmdHis', time());" | |
UP | |
-- | |
CREATE TABLE foo ( | |
id int(11) PRIMARY KEY AUTO_INCREMENT, | |
first_name varchar(64) | |
); | |
DOWN | |
---- | |
DROP TABLE foo; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment