diff options
author | 2021-08-13 00:45:01 +0530 | |
---|---|---|
committer | 2021-08-13 00:45:01 +0530 | |
commit | 2d27d5e66649d4f5baf127a53ee5ae524eae3a59 (patch) | |
tree | c592ea219ac8cd987fc367f57b54034c450ab2ab /src/internal-server/database/migrations/1566385379883_service_schema.js | |
parent | Ferdi v5.6.0 (diff) | |
parent | 5.6.1-nightly.24 [skip ci] (diff) | |
download | ferdium-app-2d27d5e66649d4f5baf127a53ee5ae524eae3a59.tar.gz ferdium-app-2d27d5e66649d4f5baf127a53ee5ae524eae3a59.tar.zst ferdium-app-2d27d5e66649d4f5baf127a53ee5ae524eae3a59.zip |
chore: merge from nightly branch into release branch in prep for next beta
Diffstat (limited to 'src/internal-server/database/migrations/1566385379883_service_schema.js')
-rw-r--r-- | src/internal-server/database/migrations/1566385379883_service_schema.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/internal-server/database/migrations/1566385379883_service_schema.js b/src/internal-server/database/migrations/1566385379883_service_schema.js new file mode 100644 index 000000000..d887ef193 --- /dev/null +++ b/src/internal-server/database/migrations/1566385379883_service_schema.js | |||
@@ -0,0 +1,21 @@ | |||
1 | /** @type {import('@adonisjs/lucid/src/Schema')} */ | ||
2 | const Schema = use('Schema'); | ||
3 | |||
4 | class ServiceSchema extends Schema { | ||
5 | up() { | ||
6 | this.create('services', (table) => { | ||
7 | table.increments(); | ||
8 | table.string('serviceId', 80).notNullable(); | ||
9 | table.string('name', 80).notNullable(); | ||
10 | table.string('recipeId', 254).notNullable(); | ||
11 | table.json('settings'); | ||
12 | table.timestamps(); | ||
13 | }); | ||
14 | } | ||
15 | |||
16 | down() { | ||
17 | this.drop('services'); | ||
18 | } | ||
19 | } | ||
20 | |||
21 | module.exports = ServiceSchema; | ||