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 --- database/migrations/1566554231482_recipe_schema.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'database/migrations/1566554231482_recipe_schema.ts') diff --git a/database/migrations/1566554231482_recipe_schema.ts b/database/migrations/1566554231482_recipe_schema.ts index 567c89f..4620be3 100644 --- a/database/migrations/1566554231482_recipe_schema.ts +++ b/database/migrations/1566554231482_recipe_schema.ts @@ -1,19 +1,19 @@ -import { BaseSchema } from '@adonisjs/lucid/schema' +import { BaseSchema } from '@adonisjs/lucid/schema'; export default class extends BaseSchema { - protected tableName = 'recipes' + protected tableName = 'recipes'; public async up(): Promise { - this.schema.createTable(this.tableName, (table) => { - table.increments() - table.string('name', 80).notNullable() - table.string('recipeId', 254).notNullable().unique() - table.json('data') - table.timestamps() - }) + this.schema.createTable(this.tableName, table => { + table.increments(); + table.string('name', 80).notNullable(); + table.string('recipeId', 254).notNullable().unique(); + 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