34 lines
700 B
JavaScript
34 lines
700 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("activity_objects", {
|
|
id: {type: "int", primaryKey: true, autoIncrements: true},
|
|
object: "string",
|
|
type: "string",
|
|
local: "boolean",
|
|
uri_id: "string",
|
|
owner: "string",
|
|
});
|
|
};
|
|
|
|
exports.down = function (db) {
|
|
return db.dropTable("activity_objects");
|
|
};
|
|
|
|
exports._meta = {
|
|
version: 1,
|
|
};
|