-
-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AutoMigrate: Rename/Create/Drop tables #926
Open
bevzzz
wants to merge
17
commits into
uptrace:master
Choose a base branch
from
bevzzz:feature/automigrate-rename-table
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Commits on Jul 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 10a1e3b - Browse repository at this point
Copy the full SHA 10a1e3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ca2d6bf - Browse repository at this point
Copy the full SHA ca2d6bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 47c41b1 - Browse repository at this point
Copy the full SHA 47c41b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c23401 - Browse repository at this point
Copy the full SHA 0c23401View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1600d5e - Browse repository at this point
Copy the full SHA 1600d5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f84145 - Browse repository at this point
Copy the full SHA 9f84145View commit details -
Configuration menu - View commit details
-
Copy full SHA for 630307f - Browse repository at this point
Copy the full SHA 630307fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f1c856d - Browse repository at this point
Copy the full SHA f1c856dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f989896 - Browse repository at this point
Copy the full SHA f989896View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06606b0 - Browse repository at this point
Copy the full SHA 06606b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c94fa1a - Browse repository at this point
Copy the full SHA c94fa1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a9534d7 - Browse repository at this point
Copy the full SHA a9534d7View commit details -
Additionally: - allow custom FK names (limited applicability rn) - implement GetReverse for AddFK and DropFK - detect renamed foreign keys - EqualSignature handles empty models (no columns)
Configuration menu - View commit details
-
Copy full SHA for 06ad311 - Browse repository at this point
Copy the full SHA 06ad311View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec35f61 - Browse repository at this point
Copy the full SHA ec35f61View commit details
Commits on Aug 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a0d996b - Browse repository at this point
Copy the full SHA a0d996bView commit details -
refactor: remove AlterTableQuery bloat and fix test errors
- Do not implement AppendQuery on Operation level. This is a leaky abstraction as queries are dialect-specific and migrate package should not be concerned with how they are constructed. - AlterTableQuery also is an unnecessary abstraction. Now pgdialect will just build a simple string-query for each Operation. - Moved operations.go to migrate/ package and deleted alt/ package. - Minor clean-ups and documentation. testChangeColumnType is commented out because the implementation is missing.
Configuration menu - View commit details
-
Copy full SHA for ce75416 - Browse repository at this point
Copy the full SHA ce75416View commit details
Commits on Aug 11, 2024
-
Bufixes and improvements: - pgdialect.Inspector canonicalizes all default expressions (lowercase) to make sure they are always comparable with the model definition. - sqlschema.SchemaInspector canonicalizes all default expressions (lowercase) - pgdialect and sqlschema now support type-equivalence, which prevents unnecessary migrations like CHAR -> CHARACTER from being created. Changing PRIMARY KEY and UNIQUE-ness are outside of this commit's scope, because those constraints can span multiple columns.
Configuration menu - View commit details
-
Copy full SHA for 4e80ee1 - Browse repository at this point
Copy the full SHA 4e80ee1View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.