migrate data from entry/bundlers? #3
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: stellular/bundlrs#3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
is this possible and if so how
Technically it's possible, the schema is essentially the same with the only difference really being column names and 1 or 2 extras.
Depending on the number of pastes you're migrating this could be pretty easy or pretty hard.
Pastes would have to be re-rendered and have that value filled into the
content_html
column (from new schema), andGroupSubmitPassword
would have to just be dropped entirely.Metadata
would also likely have to be dropped as many of the fields are different now.Honestly you could likely just import all data and run the following SQL commands (untested, so you should probably review them):
Then you can just set the value of
metadata
to the default for all pastes (fix deserialization error):You'll also have to add the
id
column. This column normally has a random value, but you could technically set it to be the same as thecustom_url
and you'll have no issues.