Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hrazasalman committed Sep 18, 2024
1 parent d5c1493 commit 2166674
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use strict';

import { TupaiaDatabase } from '../TupaiaDatabase';

var dbm;
var type;
var seed;
Expand All @@ -16,14 +14,10 @@ exports.setup = function (options, seedLink) {
seed = seedLink;
};

exports.up = async function () {
const db = new TupaiaDatabase();
await db.executeSql(`ALTER TYPE public.entity_type ADD VALUE IF NOT EXISTS 'pacmossi_district';`);
await db.executeSql(`ALTER TYPE public.entity_type ADD VALUE IF NOT EXISTS 'pacmossi_village';`);
await db.executeSql(
`ALTER TYPE public.entity_type ADD VALUE IF NOT EXISTS 'pacmossi_spraying_site';`,
);
return db.closeConnections();
exports.up = async function (db) {
return db.runSql(`ALTER TYPE public.entity_type ADD VALUE IF NOT EXISTS 'pacmossi_district';
ALTER TYPE public.entity_type ADD VALUE IF NOT EXISTS 'pacmossi_village';
ALTER TYPE public.entity_type ADD VALUE IF NOT EXISTS 'pacmossi_spraying_site';`);
};

exports.down = function (db) {
Expand Down

0 comments on commit 2166674

Please sign in to comment.