Changeset 480


Ignore:
Timestamp:
11/27/13 16:36:37 (11 years ago)
Author:
hendrikvanantwerpen
Message:

Introduced schema version.

Location:
Dev/trunk/src/server/config
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/server/config/couchdb-design-docs.js

    r477 r480  
    88        roles: [ "qed_admin" ],
    99        type: "user"
     10    },
     11
     12    "qed/schemaInfo": {
     13        version: "1"
    1014    },
    1115
  • Dev/trunk/src/server/config/couchdb-schema.json

    r479 r480  
    11{
    22  "title": "QED Object Schema",
    3   "$ref": "#/docTypes/any",
     3  "type": "object",
     4  "oneOf": [
     5    { "$ref": "#/schemaInfo" },
     6    { "$ref": "#/docTypes/any" }
     7  ],
     8  "schemaInfo": {
     9    "type": "object",
     10    "properties": {
     11        "_id": { "type": "string", "pattern": "schemaInfo" },
     12        "_rev": { "type": "string", "optional": true },
     13        "version": { "type": "string", "pattern": "1" }
     14    },
     15    "additionalProperties": false
     16  },
    417  "docTypes": {
    518    "any": {
Note: See TracChangeset for help on using the changeset viewer.