-
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.
Signed-off-by: Alexis Rico <[email protected]>
- Loading branch information
Showing
35 changed files
with
416 additions
and
391 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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
title: Add not null constraint | ||
description: Add not null operations add a `NOT NULL` constraint to a column. | ||
--- | ||
|
||
## Structure | ||
|
||
```json | ||
{ | ||
"alter_column": { | ||
"table": "table name", | ||
"column": "column name", | ||
"nullable": false, | ||
"up": "SQL expression", | ||
"down": "SQL expression" | ||
} | ||
} | ||
``` | ||
|
||
## Examples | ||
|
||
<ExampleSnippet example="16_set_nullable.json" language="json" /> |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
title: Change comment | ||
description: A change comment operation changes the comment on a column. | ||
--- | ||
|
||
## Structure | ||
|
||
```json | ||
{ | ||
"alter_column": { | ||
"table": "table name", | ||
"column": "column name", | ||
"comment": "new comment for column" | null, | ||
"up": "SQL expression", | ||
"down": "SQL expression" | ||
} | ||
} | ||
``` | ||
|
||
## Examples | ||
|
||
<ExampleSnippet example="35_alter_column_multiple.json" language="json" /> | ||
|
||
<ExampleSnippet example="36_set_comment_to_null.json" language="json" /> |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
title: Change default | ||
description: A change default operation changes the default value of a column. | ||
--- | ||
|
||
## Structure | ||
|
||
```json | ||
{ | ||
"alter_column": { | ||
"table": "table name", | ||
"column": "column name", | ||
"default": "new default value" | null, | ||
"up": "SQL expression", | ||
"down": "SQL expression" | ||
} | ||
} | ||
``` | ||
|
||
## Examples | ||
|
||
<ExampleSnippet example="35_alter_column_multiple.json" language="json" /> | ||
|
||
<ExampleSnippet example="46_alter_column_drop_default.json" language="json" /> |
Oops, something went wrong.