32 lines
659 B
JavaScript
32 lines
659 B
JavaScript
"use strict";
|
|
|
|
let dbm;
|
|
let type;
|
|
let seed;
|
|
|
|
/**
|
|
* We receive the dbmigrate dependency from dbmigrate initially.
|
|
* This enables us to not have to rely on NODE_PATH.
|
|
*/
|
|
exports.setup = function (options, seedLink) {
|
|
dbm = options.dbmigrate;
|
|
type = dbm.dataType;
|
|
seed = seedLink;
|
|
};
|
|
|
|
exports.up = function (db) {
|
|
return db.createTable("jsonld_schema_cache", {
|
|
id: {type: "int", primaryKey: true, autoIncrements: true},
|
|
schema_uri: "string",
|
|
schema: "string",
|
|
expires: "int",
|
|
});
|
|
};
|
|
|
|
exports.down = function (db) {
|
|
return db.dropTable("jsonld_schema_cache");
|
|
};
|
|
|
|
exports._meta = {
|
|
version: 1,
|
|
};
|