dialect/sql/schema: initial work for incremental migration (#428)

This is a WIP PR and should be ignored this moment.
It's based on PR #221 created by Erik Hollensbe (He should
get his credit for his work before we land this).
This commit is contained in:
Ariel Mashraki
2020-04-12 19:12:33 +03:00
committed by GitHub
parent 8effe6dfeb
commit 2208b243db
11 changed files with 421 additions and 52 deletions

View File

@@ -388,7 +388,7 @@ func TestMySQL_Create(t *testing.T) {
},
},
{
name: "add bool column with default value to table",
name: "add bool column with default value",
tables: []*Table{
{
Name: "users",
@@ -420,7 +420,7 @@ func TestMySQL_Create(t *testing.T) {
},
},
{
name: "add string column with default value to table",
name: "add string column with default value",
tables: []*Table{
{
Name: "users",
@@ -452,7 +452,7 @@ func TestMySQL_Create(t *testing.T) {
},
},
{
name: "add column with unsupported default value to table",
name: "add column with unsupported default value",
tables: []*Table{
{
Name: "users",
@@ -484,7 +484,7 @@ func TestMySQL_Create(t *testing.T) {
},
},
{
name: "drop column to table",
name: "drop columns",
tables: []*Table{
{
Name: "users",