1587766248488_videos_schema.js 334 B

1234567891011121314151617181920
  1. 'use strict'
  2. /** @type {import('@adonisjs/lucid/src/Schema')} */
  3. const Schema = use('Schema')
  4. class VideosSchema extends Schema {
  5. up () {
  6. this.create('videos', (table) => {
  7. table.increments()
  8. table.string('vid', 2555).nullable()
  9. })
  10. }
  11. down () {
  12. this.drop('videos')
  13. }
  14. }
  15. module.exports = VideosSchema