You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
430 B
17 lines
430 B
2 years ago
|
exports.up = async (knex) => {
|
||
|
// the site table is just a glorified map of key/values for different arbitrary settings
|
||
|
// and data collection.
|
||
|
|
||
|
await knex.schema.createTable('site', (table) => {
|
||
|
table.increments('id');
|
||
|
table.timestamps(true, true);
|
||
|
|
||
|
table.string("key").unique().notNullable();
|
||
|
table.json("value");
|
||
|
});
|
||
|
};
|
||
|
|
||
|
exports.down = async (knex) => {
|
||
|
return await knex.schema.dropTable('site');
|
||
|
};
|