33 lines
689 B
JavaScript
33 lines
689 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("w3id_security_keys", {
|
|
id: {type: "int", primaryKey: true, autoIncrements: true},
|
|
key_uri: "string",
|
|
public_key: "string",
|
|
private_key: "string",
|
|
expires: "int",
|
|
});
|
|
};
|
|
|
|
exports.down = function (db) {
|
|
return db.dropTable("w3id_security_keys");
|
|
};
|
|
|
|
exports._meta = {
|
|
version: 1,
|
|
};
|