Created
March 23, 2023 08:46
-
-
Save fischerscode/621a7c94ba18ced17c8962c0ea635579 to your computer and use it in GitHub Desktop.
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
# serverpod_cli would use this to tell the developer what | |
# a recommended steps subset does. | |
comment: Migrate from current to target | |
# A list of steps, that have to be performed, in order to | |
# migrate from current to target. | |
# If a step fails, the transaction is canceled and the migration failed. | |
# Tables might be prefixed with the schema. If not, `public` is assumed. | |
steps: | |
- renameTable: | |
currentName: test_table | |
targetName: test_table2 | |
- renameColumn: | |
table: test_table2 | |
currentName: column1 | |
targetName: column2 | |
- dropTable: | |
name: table2 | |
- createTable: | |
name: table3 | |
columns: | |
# ... | |
# A created table can also be dropped. | |
- dropTable: | |
name: table3 | |
# # Recommended migration steps created by serverpod_cli. | |
# # Uncomment them to add them to your migration plan. | |
# # steps from serverpod | |
# # --- comment goes here --- | |
# - createTable: | |
# name: serverpod_a_table | |
# # Recommendations created by serverpod_cli based on migration steps | |
# # from package:serverpod and the modules | |
# The current structure | |
# For package:serverpod or modules this doesn't have to be complete | |
current: {} | |
# The target structure | |
# For package:serverpod or modules this doesn't have to be complete | |
target: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment