mirror of
https://github.com/ent/ent.git
synced 2026-05-03 08:00:58 +03:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user