Skip to content

Commit

Permalink
db(entityTypes): hotfix: MAUI-4384: add hospital_area entity type (#5760
Browse files Browse the repository at this point in the history
)

add new entity
  • Loading branch information
hrazasalman authored Jul 4, 2024
1 parent cd12ad1 commit accbcc4
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
'use strict';

var dbm;
var type;
var seed;

/**
* We receive the dbmigrate dependency from dbmigrate initially.
* This enables us to not have to rely on NODE_PATH.
*/
exports.setup = function(options, seedLink) {
dbm = options.dbmigrate;
type = dbm.dataType;
seed = seedLink;
};

exports.up = function(db) {
return db.runSql(`ALTER TYPE public.entity_type ADD VALUE IF NOT EXISTS 'hospital_area';`);
};

exports.down = function(db) {
return null;
};

exports._meta = {
"version": 1
};
Loading

0 comments on commit accbcc4

Please sign in to comment.