-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add command to recreate tables #12407
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
f1e15e3
Add command to recreate tables
zeripath 05d551c
placate lint
zeripath bb7f07e
ensure that current engine is closed
zeripath 129e4ce
Quote the table name
zeripath 3cfbd35
Apply suggestions from code review
zeripath 60479f8
Let's see if mssql will tolerate this...
zeripath 007afa9
turns out the issue is the double underscore
zeripath 82cf751
Update models/migrations/migrations.go
zeripath 3e79034
let us go overboard with quotes
zeripath 0b041ca
Seriously MSSQL?
zeripath 214ed20
Merge remote-tracking branch 'origin/master' into doctor-recreate-tables
zeripath d708602
Add some logging
zeripath 8ab1573
Finally fix MSSQL
zeripath d75cd7e
Merge branch 'master' into doctor-recreate-tables
zeripath b78d35e
Merge remote-tracking branch 'origin/master' into doctor-recreate-tables
zeripath 6ae198f
as per @silverwind
zeripath 2c5a3d2
Merge remote-tracking branch 'origin/master' into doctor-recreate-tables
zeripath aaa2131
Ensure that the indexes are recreated too
zeripath 2a39249
shorter prefix
zeripath 69c8ff9
use the innodb storeengine
zeripath 9e9f2c6
Merge branch 'master' into doctor-recreate-tables
zeripath fb015ca
remove extra ensureuptodate
zeripath 25d886c
Add debug flag
zeripath 9e6f5d2
drop and recreate indices in sqlite and postgres
zeripath b31027b
Merge remote-tracking branch 'origin/master' into doctor-recreate-tables
zeripath fe9d2c6
Merge remote-tracking branch 'origin/master' into doctor-recreate-tables
zeripath 6562ddc
fix postgres index relabelling
zeripath 3117b01
Merge remote-tracking branch 'origin/master' into doctor-recreate-tables
zeripath c838ee7
Merge remote-tracking branch 'origin/master' into doctor-recreate-tables
zeripath 9202bcd
Merge branch 'master' into doctor-recreate-tables
zeripath 0c49f33
Merge branch 'master' into doctor-recreate-tables
zeripath 96621ed
Merge remote-tracking branch 'origin/master' into doctor-recreate-tables
zeripath 0eade14
close db between recreating tables
zeripath 0374251
Merge branch 'master' into doctor-recreate-tables
zeripath 29a753e
Merge branch 'master' into doctor-recreate-tables
zeripath File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.