From a61e73c33b2e80d5af58e3dcfa2efe74245cd065 Mon Sep 17 00:00:00 2001 From: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Date: Sat, 10 Feb 2024 18:19:14 -0700 Subject: refactor: project maintenance - work in progress --- database/migrations/1503250034279_user.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'database/migrations/1503250034279_user.ts') diff --git a/database/migrations/1503250034279_user.ts b/database/migrations/1503250034279_user.ts index 262a472..4a58213 100644 --- a/database/migrations/1503250034279_user.ts +++ b/database/migrations/1503250034279_user.ts @@ -1,20 +1,20 @@ -import BaseSchema from '@ioc:Adonis/Lucid/Schema'; +import { BaseSchema } from '@adonisjs/lucid/schema' export default class extends BaseSchema { - protected tableName = 'users'; + protected tableName = 'users' public async up(): Promise { - this.schema.createTable(this.tableName, table => { - table.increments(); - table.string('username', 80).notNullable(); - table.string('email', 254).notNullable().unique(); - table.string('password', 60).notNullable(); - table.json('settings'); - table.timestamps(); - }); + this.schema.createTable(this.tableName, (table) => { + table.increments() + table.string('username', 80).notNullable() + table.string('email', 254).notNullable().unique() + table.string('password', 60).notNullable() + table.json('settings') + table.timestamps() + }) } public async down(): Promise { - this.schema.dropTable(this.tableName); + this.schema.dropTable(this.tableName) } } -- cgit v1.2.3-70-g09d2