Skip to content

Commit

Permalink
Fixed SQLite migrations scripts - SQLite has no support for removing …
Browse files Browse the repository at this point in the history
…columns (except by creating a new table and copying over data and then deleting the old table).
  • Loading branch information
ferventcoder committed Nov 27, 2011
1 parent 32bf03a commit 05d56aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/SQLite/TestRoundhousE/up/0001_CreateTables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ CREATE TABLE Timmy
ID INTEGER NOT NULL PRIMARY KEY,
dude TEXT NULL,
yep TEXT
)
);
2 changes: 1 addition & 1 deletion db/SQLite/TestRoundhousE/up/0002_ChangeTable.sql
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ALTER TABLE Timmy DROP COLUMN dude
ALTER TABLE Timmy ADD COLUMN dude2 TEXT NULL;

0 comments on commit 05d56aa

Please sign in to comment.