Skip to content

Commit

Permalink
Adjust versioning on player_stats default scripts.
Browse files Browse the repository at this point in the history
Add `bomb_time_remaining` to bomb plant table.
  • Loading branch information
PhlexPlexico committed Jun 30, 2023
1 parent c8a595b commit 5f48302
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 4 deletions.
2 changes: 1 addition & 1 deletion migrations/development/20230629010420-get5db.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,5 +255,5 @@ exports.down = function(db) {
};

exports._meta = {
"version": 1
"version": 26
};
32 changes: 32 additions & 0 deletions migrations/development/20230630204451-get5db.js
Original file line number Diff line number Diff line change
@@ -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
};
2 changes: 1 addition & 1 deletion migrations/production/20230629010420-get5db.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,5 +255,5 @@ exports.down = function(db) {
};

exports._meta = {
"version": 1
"version": 26
};
32 changes: 32 additions & 0 deletions migrations/production/20230630204451-get5db.js
Original file line number Diff line number Diff line change
@@ -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
};
2 changes: 1 addition & 1 deletion migrations/test/20230629010420-get5db.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,5 +255,5 @@ exports.down = function(db) {
};

exports._meta = {
"version": 1
"version": 26
};
32 changes: 32 additions & 0 deletions migrations/test/20230630204451-get5db.js
Original file line number Diff line number Diff line change
@@ -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
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "g5api",
"version": "2.0.1.0",
"version": "2.0.1.1",
"private": true,
"type": "module",
"licenses": [
Expand Down

0 comments on commit 5f48302

Please sign in to comment.