aboutsummaryrefslogtreecommitdiffstats
path: root/database/migrations/1566385379883_service_schema.ts
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2024-02-10 18:19:14 -0700
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2024-02-13 06:59:44 +0530
commit7584d2d7a7110aef0331ebfa178b2295842c59fa (patch)
tree900cd71237e6231b57936fcce77ff229cd459041 /database/migrations/1566385379883_service_schema.ts
parentupgrade recipes submodule (diff)
downloadferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.tar.gz
ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.tar.zst
ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.zip
refactor: project maintenance
- work in progress
Diffstat (limited to 'database/migrations/1566385379883_service_schema.ts')
-rw-r--r--database/migrations/1566385379883_service_schema.ts24
1 files changed, 12 insertions, 12 deletions
diff --git a/database/migrations/1566385379883_service_schema.ts b/database/migrations/1566385379883_service_schema.ts
index 9c3e23d..3c46cab 100644
--- a/database/migrations/1566385379883_service_schema.ts
+++ b/database/migrations/1566385379883_service_schema.ts
@@ -1,21 +1,21 @@
1import BaseSchema from '@ioc:Adonis/Lucid/Schema'; 1import { BaseSchema } from '@adonisjs/lucid/schema'
2 2
3export default class extends BaseSchema { 3export default class extends BaseSchema {
4 protected tableName = 'services'; 4 protected tableName = 'services'
5 5
6 public async up(): Promise<void> { 6 public async up(): Promise<void> {
7 this.schema.createTable(this.tableName, table => { 7 this.schema.createTable(this.tableName, (table) => {
8 table.increments(); 8 table.increments()
9 table.string('userId', 80).notNullable(); 9 table.string('userId', 80).notNullable()
10 table.string('serviceId', 80).notNullable(); 10 table.string('serviceId', 80).notNullable()
11 table.string('name', 80).notNullable(); 11 table.string('name', 80).notNullable()
12 table.string('recipeId', 254).notNullable(); 12 table.string('recipeId', 254).notNullable()
13 table.json('settings'); 13 table.json('settings')
14 table.timestamps(); 14 table.timestamps()
15 }); 15 })
16 } 16 }
17 17
18 public async down(): Promise<void> { 18 public async down(): Promise<void> {
19 this.schema.dropTable(this.tableName); 19 this.schema.dropTable(this.tableName)
20 } 20 }
21} 21}