From e1c47572a6235fd8fd20af888ac3a11c7ae1369d Mon Sep 17 00:00:00 2001 From: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Date: Sat, 10 Feb 2024 18:37:40 -0700 Subject: updates --- .../migrations/1566554359294_workspace_schema.ts | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'database/migrations/1566554359294_workspace_schema.ts') diff --git a/database/migrations/1566554359294_workspace_schema.ts b/database/migrations/1566554359294_workspace_schema.ts index b863200..32821b3 100644 --- a/database/migrations/1566554359294_workspace_schema.ts +++ b/database/migrations/1566554359294_workspace_schema.ts @@ -1,22 +1,22 @@ -import { BaseSchema } from '@adonisjs/lucid/schema' +import { BaseSchema } from '@adonisjs/lucid/schema'; export default class extends BaseSchema { - protected tableName = 'workspaces' + protected tableName = 'workspaces'; public async up(): Promise { - this.schema.createTable(this.tableName, (table) => { - table.increments() - table.string('workspaceId', 80).notNullable().unique() - table.string('userId', 80).notNullable() - table.string('name', 80).notNullable() - table.integer('order') - table.json('services') - table.json('data') - table.timestamps() - }) + this.schema.createTable(this.tableName, table => { + table.increments(); + table.string('workspaceId', 80).notNullable().unique(); + table.string('userId', 80).notNullable(); + table.string('name', 80).notNullable(); + table.integer('order'); + table.json('services'); + table.json('data'); + table.timestamps(); + }); } public async down(): Promise { - this.schema.dropTable(this.tableName) + this.schema.dropTable(this.tableName); } } -- cgit v1.2.3-70-g09d2