Skip to content

Commit

Permalink
Merge pull request #4830 from planetscale/ds-vtdb
Browse files Browse the repository at this point in the history
default value for db_name
  • Loading branch information
sougou authored Apr 24, 2019
2 parents 6c55f27 + 75e0822 commit a92a0a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/vt/mysqlctl/metadata_tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ const (

var (
sqlAlterLocalMetadataTable = []string{
`ALTER TABLE _vt.local_metadata ADD COLUMN db_name VARBINARY(255) NOT NULL`,
`ALTER TABLE _vt.local_metadata ADD COLUMN db_name VARBINARY(255) NOT NULL DEFAULT ''`,
`ALTER TABLE _vt.local_metadata DROP PRIMARY KEY, ADD PRIMARY KEY(name, db_name)`,
}
sqlAlterShardMetadataTable = []string{
`ALTER TABLE _vt.shard_metadata ADD COLUMN db_name VARBINARY(255) NOT NULL`,
`ALTER TABLE _vt.shard_metadata ADD COLUMN db_name VARBINARY(255) NOT NULL DEFAULT ''`,
`ALTER TABLE _vt.shard_metadata DROP PRIMARY KEY, ADD PRIMARY KEY(name, db_name)`,
}
)
Expand Down

0 comments on commit a92a0a7

Please sign in to comment.