-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce duplication in CREATE TABLE and ADD COLUMN
There is a lot of duplication between the `CREATE TABLE` and `ALTER TABLE ADD COLUMN` conversion code. Reduce the duplication by having the ALTER TABLE ADD COLUMN conversion code and the CREATE TABLE conversion code use the same `convertColumnDef` function, which handles the conversion of a column definition to a `migrations.Column` struct along with the conversion of the column constraints.
- Loading branch information
1 parent
cef3018
commit 8e57056
Showing
2 changed files
with
12 additions
and
96 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