Skip to content
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

Database Update Scripts #1417

Open
rclations opened this issue Apr 11, 2017 · 5 comments
Open

Database Update Scripts #1417

rclations opened this issue Apr 11, 2017 · 5 comments
Assignees
Milestone

Comments

@rclations
Copy link

There will be lots of database updates to run when upgrading to Largo 1.0

Some examples:

  • Theme options will move to customizer settings
  • Options framework will need to be parsed out and moved into customizer settings
@rclations rclations added this to the 1.0 milestone Apr 11, 2017
@benlk
Copy link
Collaborator

benlk commented Apr 11, 2017

Notes:

  • the optionsframework option in wp_options is a serialized array of:
    • index 'id': the active theme options array's option_key
    • index 'knownoptions': all known Options Framework options arrays.
array (
  'id' => 'chicago_reporter',
  'knownoptions' => 
  array (
    0 => 'largo_dev',
    1 => 'chicago_reporter',
    2 => '',
  ),
)

@rclations
Copy link
Author

@benlk this is great - could you go through and compile a list of everything we're saving in the database in the most recent version of largo?

Then you and I can go through the list, determine where things are moving to, and write db migration scripts for this.

@benlk
Copy link
Collaborator

benlk commented Apr 12, 2017

By "everything" do you mean everything that's related to the theme, or also the custom meta things in posts and users and taxonomy terms?

@rclations
Copy link
Author

everything that Largo stores in the database

@benlk
Copy link
Collaborator

benlk commented Apr 12, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants