This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
seepur/database/migrations/1586612224965_ice_server_schema.js
2020-04-12 10:25:42 -04:00

24 lines
543 B
JavaScript

'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;