seepur/database/migrations/1586612224965_ice_server_schema.js

25 lines
543 B
JavaScript
Raw Normal View History

2020-04-12 14:25:42 +00:00
'use strict'
/** @type {import('@adonisjs/lucid/src/Schema')} */
const Schema = use('Schema');
class IceServerSchema extends Schema {
up() {
this.create('ice_servers', (table) => {
table.increments();
table.string('type', 254).notNullable();
table.string('url', 254).notNullable();
table.integer('port').notNullable();
table.string('protocol', 254);
table.string('secret', 254);
table.timestamps();
})
}
down() {
this.drop('ice_servers');
}
}
module.exports = IceServerSchema;