init simple appreports
This commit is contained in:
.eslintignore.eslintrc.js.liconfig.jsonLICENSEbabel.config.jsdb.sqliteindex.js
lib
logmigrations
package.jsonseeds
src
yarn.lock
17
migrations/00000-init.js
Normal file
17
migrations/00000-init.js
Normal file
@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
async function up (knex) {
|
||||
await knex.schema.createTable ('log', (table) => {
|
||||
table.increments ('id');
|
||||
table.string ('app');
|
||||
table.string ('message');
|
||||
table.json ('data');
|
||||
table.timestamp ('timestamp');
|
||||
});
|
||||
}
|
||||
|
||||
function down () {
|
||||
// noop
|
||||
}
|
||||
|
||||
module.exports = { up, down };
|
Reference in New Issue
Block a user