-
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.
Convert SQL statements of the form: ```sql ALTER TABLE foo RENAME TO bar ``` to the corresponding `OpRenameTable` operation: ```json [ { "rename_table": { "from": "foo", "to": "bar" } } ] ``` Part of #504
- Loading branch information
1 parent
3b8c56e
commit 3512f76
Showing
3 changed files
with
44 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package expect | ||
|
||
import "github.com/xataio/pgroll/pkg/migrations" | ||
|
||
var RenameTableOp1 = &migrations.OpRenameTable{ | ||
From: "foo", | ||
To: "bar", | ||
} |
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