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

25 lines
543 B
JavaScript
Raw Permalink 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;