-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f6ae29
commit 00848e7
Showing
8 changed files
with
233 additions
and
7 deletions.
There are no files selected for viewing
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
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
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
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
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,3 @@ | ||
--changeset josephspurrier:1 | ||
CREATE TABLE user_status ( | ||
--rollback DROP TABLE user_status; |
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,9 @@ | ||
--changeset josephspurrier:1 | ||
-- Query is missing here on purpose. | ||
--rollback DROP TABLE user_status; | ||
|
||
--changeset josephspurrier:2 | ||
INSERT INTO `user_status` (`id`, `status`, `created_at`, `updated_at`, `deleted`) VALUES | ||
(1, 'active', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 0), | ||
(2, 'inactive', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 0); | ||
--rollback TRUNCATE TABLE user_status; |
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,19 @@ | ||
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; | ||
CREATE TABLE user_status ( | ||
id TINYINT(1) UNSIGNED NOT NULL AUTO_INCREMENT, | ||
|
||
status VARCHAR(25) NOT NULL, | ||
|
||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
deleted TINYINT(1) UNSIGNED NOT NULL DEFAULT 0, | ||
|
||
PRIMARY KEY (id) | ||
); | ||
--rollback DROP TABLE user_status; | ||
|
||
--changeset josephspurrier:2 | ||
INSERT INTO `user_status` (`id`, `status`, `created_at`, `updated_at`, `deleted`) VALUES | ||
(1, 'active', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 0), | ||
(2, 'inactive', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 0); | ||
--rollback TRUNCATE TABLE user_status; |
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