Skip to content

Commit

Permalink
db(entityTypes): MAUI-4763: Add new entity types (pacmossi_insecticid…
Browse files Browse the repository at this point in the history
…e_test) for PacMOSSI project (#5986)

* pacmossi_insecticide_test entity type

* schema and model update
  • Loading branch information
hrazasalman authored Nov 4, 2024
1 parent f85052f commit eba85fa
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
'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 'pacmossi_insecticide_test'`,
);
};

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

exports._meta = {
version: 1,
};
1 change: 1 addition & 0 deletions packages/types/src/schemas/schemas.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/types/src/types/models.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eba85fa

Please sign in to comment.