Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • T types
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pubsweetpubsweet
  • types
  • Merge requests
  • !8

First stab at a SQL schema for persisting the shared data model

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Tamlyn Rhodes requested to merge sql-schema into master Aug 09, 2018
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 2
  • A lot of stuff has been shunted into JSONB columns for now
  • Column names have been converted to snake_case to avoid potential bugs caused by Postgres automatic conversion of unquoted camelCase identifiers to lower case
  • meta sub objects are flattened to dotted.paths
  • Null constraints need some more attention
  • The implementation of manuscript versions uses a linked list of previous_version. The whole list can be queried with a recursive CTE. Alternative suggestions welcome.
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: sql-schema