-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from schemahero/0.8.0-alpha.2
Adding support to "plan" to a file and then "apply"
- Loading branch information
Showing
28 changed files
with
166 additions
and
111 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
alter table `users` modify column `account_type` varchar (10) not null default "trial" | ||
alter table `users` modify column `num_seats` int (11) not null default "5" | ||
alter table `users` modify column `account_type` varchar (10) not null default "trial"; | ||
alter table `users` modify column `num_seats` int (11) not null default "5"; |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
alter table `users` modify column `account_type` varchar (10) | ||
alter table `users` modify column `num_seats` int (11) | ||
alter table `users` modify column `account_type` varchar (10); | ||
alter table `users` modify column `num_seats` int (11); |
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 |
---|---|---|
@@ -1 +1 @@ | ||
create table `users` (`id` int (11), `login` varchar (255), `name` varchar (255) not null default 'ethan', primary key (`id`)) | ||
create table `users` (`id` int (11), `login` varchar (255), `name` varchar (255) not null default 'ethan', primary key (`id`)); |
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 |
---|---|---|
@@ -1 +1 @@ | ||
create table `user_project` (`user_id` int (11), `project_id` int (11), `misc_id` varchar (255) not null, primary key (`user_id`, `project_id`), constraint user_project_user_id_fkey foreign key (user_id) references users (id), constraint user_project_project_id_fkey foreign key (project_id) references projects (id), constraint misc_named_fk foreign key (misc_id) references misc (pk) on delete cascade) | ||
create table `user_project` (`user_id` int (11), `project_id` int (11), `misc_id` varchar (255) not null, primary key (`user_id`, `project_id`), constraint user_project_user_id_fkey foreign key (user_id) references users (id), constraint user_project_project_id_fkey foreign key (project_id) references projects (id), constraint misc_named_fk foreign key (misc_id) references misc (pk) on delete cascade); |
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 |
---|---|---|
@@ -1 +1 @@ | ||
alter table issues add constraint renamed_fkey foreign key (project_id) references projects (id) | ||
alter table issues add constraint renamed_fkey foreign key (project_id) references projects (id); |
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 |
---|---|---|
@@ -1 +1 @@ | ||
create table `user_project` (`user_id` int (11), `project_id` int (11), `misc_id` varchar (255) not null, primary key (`user_id`, `project_id`), constraint user_project_user_id_fkey foreign key (user_id) references users (id), constraint user_project_project_id_fkey foreign key (project_id) references projects (id), constraint misc_named_fk foreign key (misc_id) references misc (pk)) | ||
create table `user_project` (`user_id` int (11), `project_id` int (11), `misc_id` varchar (255) not null, primary key (`user_id`, `project_id`), constraint user_project_user_id_fkey foreign key (user_id) references users (id), constraint user_project_project_id_fkey foreign key (project_id) references projects (id), constraint misc_named_fk foreign key (misc_id) references misc (pk)); |
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 |
---|---|---|
@@ -1 +1 @@ | ||
alter table `org` modify column `project_id` int (11) not null | ||
alter table `org` modify column `project_id` int (11) not null; |
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 |
---|---|---|
@@ -1 +1 @@ | ||
create unique index idx_users_email on users (email) | ||
create unique index idx_users_email on users (email); |
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 |
---|---|---|
@@ -1 +1 @@ | ||
alter table `projects` modify column `icon_uri` varchar (255) | ||
alter table `projects` modify column `icon_uri` varchar (255); |
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 |
---|---|---|
@@ -1 +1 @@ | ||
alter table `user_projects` add constraint `user_projects_pkey` primary key (`user_id`, `project_id`) | ||
alter table `user_projects` add constraint `user_projects_pkey` primary key (`user_id`, `project_id`); |
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 |
---|---|---|
@@ -1 +1 @@ | ||
alter table `user_projects` drop primary key | ||
alter table `user_projects` drop primary key; |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
alter table "users" alter column "account_type" set default 'trial', alter column "account_type" set not null | ||
alter table "users" alter column "num_seats" set default '5', alter column "num_seats" set not null | ||
alter table "users" alter column "account_type" set default 'trial', alter column "account_type" set not null; | ||
alter table "users" alter column "num_seats" set default '5', alter column "num_seats" set not null; |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
alter table "users" alter column "account_type" drop default, alter column "account_type" drop not null | ||
alter table "users" alter column "num_seats" drop default, alter column "num_seats" drop not null | ||
alter table "users" alter column "account_type" drop default, alter column "account_type" drop not null; | ||
alter table "users" alter column "num_seats" drop default, alter column "num_seats" drop not null; |
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 |
---|---|---|
@@ -1 +1 @@ | ||
create table "users" ("id" integer, "login" character varying (255), "name" character varying (255) not null default 'ethan', primary key ("id")) | ||
create table "users" ("id" integer, "login" character varying (255), "name" character varying (255) not null default 'ethan', primary key ("id")); |
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 |
---|---|---|
@@ -1 +1 @@ | ||
create table "user_project" ("user_id" integer, "project_id" integer, "misc_id" character varying (255) not null, primary key ("user_id", "project_id"), constraint user_project_user_id_fkey foreign key (user_id) references users (id), constraint user_project_project_id_fkey foreign key (project_id) references projects (id), constraint misc_named_fk foreign key (misc_id) references misc (pk) on delete cascade) | ||
create table "user_project" ("user_id" integer, "project_id" integer, "misc_id" character varying (255) not null, primary key ("user_id", "project_id"), constraint user_project_user_id_fkey foreign key (user_id) references users (id), constraint user_project_project_id_fkey foreign key (project_id) references projects (id), constraint misc_named_fk foreign key (misc_id) references misc (pk) on delete cascade); |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
alter table issues drop constraint "issues_project_id_fkey" | ||
alter table issues add constraint renamed_fkey foreign key (project_id) references projects (id) | ||
alter table issues drop constraint "issues_project_id_fkey"; | ||
alter table issues add constraint renamed_fkey foreign key (project_id) references projects (id); |
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 |
---|---|---|
@@ -1 +1 @@ | ||
create table "user_project" ("user_id" integer, "project_id" integer, "misc_id" character varying (255) not null, primary key ("user_id", "project_id"), constraint user_project_user_id_fkey foreign key (user_id) references users (id), constraint user_project_project_id_fkey foreign key (project_id) references projects (id), constraint misc_named_fk foreign key (misc_id) references misc (pk)) | ||
create table "user_project" ("user_id" integer, "project_id" integer, "misc_id" character varying (255) not null, primary key ("user_id", "project_id"), constraint user_project_user_id_fkey foreign key (user_id) references users (id), constraint user_project_project_id_fkey foreign key (project_id) references projects (id), constraint misc_named_fk foreign key (misc_id) references misc (pk)); |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
alter table "org" alter column "project_id" set not null | ||
alter table org drop constraint "org_project_id_fkey" | ||
alter table "org" alter column "project_id" set not null; | ||
alter table org drop constraint "org_project_id_fkey"; |
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 |
---|---|---|
@@ -1 +1 @@ | ||
create unique index idx_users_email on users (email) | ||
create unique index idx_users_email on users (email); |
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 |
---|---|---|
@@ -1 +1 @@ | ||
alter table "projects" alter column "icon_uri" drop not null | ||
alter table "projects" alter column "icon_uri" drop not null; |
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 |
---|---|---|
@@ -1 +1 @@ | ||
alter table user_projects add constraint user_projects_pkey primary key (user_id, project_id) | ||
alter table user_projects add constraint user_projects_pkey primary key (user_id, project_id); |
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 |
---|---|---|
@@ -1 +1 @@ | ||
alter table user_projects drop constraint "user_projects_pkey" | ||
alter table user_projects drop constraint "user_projects_pkey"; |
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
Oops, something went wrong.