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

Data model: Custom post data #171

Closed
2 tasks
ErisDS opened this issue Jun 17, 2013 · 1 comment
Closed
2 tasks

Data model: Custom post data #171

ErisDS opened this issue Jun 17, 2013 · 1 comment
Assignees
Milestone

Comments

@ErisDS
Copy link
Member

ErisDS commented Jun 17, 2013

This was ripped out of #101 as it wasn't required for the 0.1.1 milestone

Add new tables:

  • Add the CustomData table (spec below)
  • Add the PostCustomData table (spec below)

CustomData

  • id
  • uuid
  • name (string)
  • value - (text)
  • type (string) - defaults to 'html' *
  • owner (string) -, defaults to 'ghost', custom data added by plugins will get the plugin name here
  • timestamps

Post Custom Data

  • id
  • post_id
  • custom_data_id
  • uuid?
  • timestamps?

* We will support several types of custom data, some examples might be html, json, text, date. We would then define what the interface for adding that type would look like, and perhaps helpers for displaying on the frontend. Advanced plugin functionality would be defining their own type and an interface for adding/editing it. For now, we'll just accept HTML blobs.

@ErisDS
Copy link
Member Author

ErisDS commented Jul 27, 2013

Would be good to get this done on the data-migrations branch in the 002.js files before we merge them in to master

@ghost ghost assigned ErisDS Aug 1, 2013
ErisDS added a commit to ErisDS/Ghost that referenced this issue Aug 3, 2013
closes TryGhost#171, closes TryGhost#314, closes TryGhost#315

- added settings for blog logo and icon
- all other settings will need to be added as needed as it's impossible to guess what the default value should be
- added tables for post tags
- added tables for post custom data
- added location column to users
- fixeed minor bug in migrations
@ErisDS ErisDS closed this as completed in 2a5e7ad Aug 5, 2013
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

1 participant