diff --git a/migrations/development/20230629010420-get5db.js b/migrations/development/20230629010420-get5db.js index ef0b25c..d27a089 100644 --- a/migrations/development/20230629010420-get5db.js +++ b/migrations/development/20230629010420-get5db.js @@ -255,5 +255,5 @@ exports.down = function(db) { }; exports._meta = { - "version": 1 + "version": 26 }; diff --git a/migrations/development/20230630204451-get5db.js b/migrations/development/20230630204451-get5db.js new file mode 100644 index 0000000..7ffe320 --- /dev/null +++ b/migrations/development/20230630204451-get5db.js @@ -0,0 +1,32 @@ +"use strict"; + +var dbm; +var type; +var seed; +var async = require("async"); + +/** + * 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, callback) { + return db.addColumn("match_bomb_plants", "bomb_time_remaining", { + type: "int", + length: 10, + notNull: true, + defaultValue: 0 + }); +}; + +exports.down = function (db, callback) { + return db.removeColumn("match_bomb_plants", "bomb_time_remaining"); +}; +exports._meta = { + version: 27 +}; diff --git a/migrations/production/20230629010420-get5db.js b/migrations/production/20230629010420-get5db.js index ef0b25c..d27a089 100644 --- a/migrations/production/20230629010420-get5db.js +++ b/migrations/production/20230629010420-get5db.js @@ -255,5 +255,5 @@ exports.down = function(db) { }; exports._meta = { - "version": 1 + "version": 26 }; diff --git a/migrations/production/20230630204451-get5db.js b/migrations/production/20230630204451-get5db.js new file mode 100644 index 0000000..7ffe320 --- /dev/null +++ b/migrations/production/20230630204451-get5db.js @@ -0,0 +1,32 @@ +"use strict"; + +var dbm; +var type; +var seed; +var async = require("async"); + +/** + * 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, callback) { + return db.addColumn("match_bomb_plants", "bomb_time_remaining", { + type: "int", + length: 10, + notNull: true, + defaultValue: 0 + }); +}; + +exports.down = function (db, callback) { + return db.removeColumn("match_bomb_plants", "bomb_time_remaining"); +}; +exports._meta = { + version: 27 +}; diff --git a/migrations/test/20230629010420-get5db.js b/migrations/test/20230629010420-get5db.js index ef0b25c..d27a089 100644 --- a/migrations/test/20230629010420-get5db.js +++ b/migrations/test/20230629010420-get5db.js @@ -255,5 +255,5 @@ exports.down = function(db) { }; exports._meta = { - "version": 1 + "version": 26 }; diff --git a/migrations/test/20230630204451-get5db.js b/migrations/test/20230630204451-get5db.js new file mode 100644 index 0000000..7ffe320 --- /dev/null +++ b/migrations/test/20230630204451-get5db.js @@ -0,0 +1,32 @@ +"use strict"; + +var dbm; +var type; +var seed; +var async = require("async"); + +/** + * 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, callback) { + return db.addColumn("match_bomb_plants", "bomb_time_remaining", { + type: "int", + length: 10, + notNull: true, + defaultValue: 0 + }); +}; + +exports.down = function (db, callback) { + return db.removeColumn("match_bomb_plants", "bomb_time_remaining"); +}; +exports._meta = { + version: 27 +}; diff --git a/package.json b/package.json index 61ac22c..ab5ff58 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "g5api", - "version": "2.0.1.0", + "version": "2.0.1.1", "private": true, "type": "module", "licenses": [