diff --git a/migrations/20240308072324-create-chuni-static-trophies.js b/migrations/20240308072324-create-chuni-static-trophies.js new file mode 100644 index 0000000..f256dd4 --- /dev/null +++ b/migrations/20240308072324-create-chuni-static-trophies.js @@ -0,0 +1,53 @@ +'use strict'; + +var dbm; +var type; +var seed; +var fs = require('fs'); +var path = require('path'); +var Promise; + +/** + * 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; + Promise = options.Promise; +}; + +exports.up = function(db) { + var filePath = path.join(__dirname, 'sqls', '20240308072324-create-chuni-static-trophies-up.sql'); + return new Promise( function( resolve, reject ) { + fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){ + if (err) return reject(err); + console.log('received data: ' + data); + + resolve(data); + }); + }) + .then(function(data) { + return db.runSql(data); + }); +}; + +exports.down = function(db) { + var filePath = path.join(__dirname, 'sqls', '20240308072324-create-chuni-static-trophies-down.sql'); + return new Promise( function( resolve, reject ) { + fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){ + if (err) return reject(err); + console.log('received data: ' + data); + + resolve(data); + }); + }) + .then(function(data) { + return db.runSql(data); + }); +}; + +exports._meta = { + "version": 1 +}; diff --git a/migrations/20240308073811-create-chuni-static-system-voice.js b/migrations/20240308073811-create-chuni-static-system-voice.js new file mode 100644 index 0000000..4f48fb3 --- /dev/null +++ b/migrations/20240308073811-create-chuni-static-system-voice.js @@ -0,0 +1,53 @@ +'use strict'; + +var dbm; +var type; +var seed; +var fs = require('fs'); +var path = require('path'); +var Promise; + +/** + * 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; + Promise = options.Promise; +}; + +exports.up = function(db) { + var filePath = path.join(__dirname, 'sqls', '20240308073811-create-chuni-static-system-voice-up.sql'); + return new Promise( function( resolve, reject ) { + fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){ + if (err) return reject(err); + console.log('received data: ' + data); + + resolve(data); + }); + }) + .then(function(data) { + return db.runSql(data); + }); +}; + +exports.down = function(db) { + var filePath = path.join(__dirname, 'sqls', '20240308073811-create-chuni-static-system-voice-down.sql'); + return new Promise( function( resolve, reject ) { + fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){ + if (err) return reject(err); + console.log('received data: ' + data); + + resolve(data); + }); + }) + .then(function(data) { + return db.runSql(data); + }); +}; + +exports._meta = { + "version": 1 +}; diff --git a/migrations/20240308074314-create-chuni-static-name-plate.js b/migrations/20240308074314-create-chuni-static-name-plate.js new file mode 100644 index 0000000..08e2535 --- /dev/null +++ b/migrations/20240308074314-create-chuni-static-name-plate.js @@ -0,0 +1,53 @@ +'use strict'; + +var dbm; +var type; +var seed; +var fs = require('fs'); +var path = require('path'); +var Promise; + +/** + * 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; + Promise = options.Promise; +}; + +exports.up = function(db) { + var filePath = path.join(__dirname, 'sqls', '20240308074314-create-chuni-static-name-plate-up.sql'); + return new Promise( function( resolve, reject ) { + fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){ + if (err) return reject(err); + console.log('received data: ' + data); + + resolve(data); + }); + }) + .then(function(data) { + return db.runSql(data); + }); +}; + +exports.down = function(db) { + var filePath = path.join(__dirname, 'sqls', '20240308074314-create-chuni-static-name-plate-down.sql'); + return new Promise( function( resolve, reject ) { + fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){ + if (err) return reject(err); + console.log('received data: ' + data); + + resolve(data); + }); + }) + .then(function(data) { + return db.runSql(data); + }); +}; + +exports._meta = { + "version": 1 +}; diff --git a/migrations/20240308074528-create-chuni-static-map-icon.js b/migrations/20240308074528-create-chuni-static-map-icon.js new file mode 100644 index 0000000..dee4143 --- /dev/null +++ b/migrations/20240308074528-create-chuni-static-map-icon.js @@ -0,0 +1,53 @@ +'use strict'; + +var dbm; +var type; +var seed; +var fs = require('fs'); +var path = require('path'); +var Promise; + +/** + * 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; + Promise = options.Promise; +}; + +exports.up = function(db) { + var filePath = path.join(__dirname, 'sqls', '20240308074528-create-chuni-static-map-icon-up.sql'); + return new Promise( function( resolve, reject ) { + fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){ + if (err) return reject(err); + console.log('received data: ' + data); + + resolve(data); + }); + }) + .then(function(data) { + return db.runSql(data); + }); +}; + +exports.down = function(db) { + var filePath = path.join(__dirname, 'sqls', '20240308074528-create-chuni-static-map-icon-down.sql'); + return new Promise( function( resolve, reject ) { + fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){ + if (err) return reject(err); + console.log('received data: ' + data); + + resolve(data); + }); + }) + .then(function(data) { + return db.runSql(data); + }); +}; + +exports._meta = { + "version": 1 +}; diff --git a/migrations/sqls/20240308072324-create-chuni-static-trophies-down.sql b/migrations/sqls/20240308072324-create-chuni-static-trophies-down.sql new file mode 100644 index 0000000..ac239c9 --- /dev/null +++ b/migrations/sqls/20240308072324-create-chuni-static-trophies-down.sql @@ -0,0 +1 @@ +DROP TABLE actaeon_chuni_static_trophies; diff --git a/migrations/sqls/20240308072324-create-chuni-static-trophies-up.sql b/migrations/sqls/20240308072324-create-chuni-static-trophies-up.sql new file mode 100644 index 0000000..cd71c08 --- /dev/null +++ b/migrations/sqls/20240308072324-create-chuni-static-trophies-up.sql @@ -0,0 +1,8 @@ +CREATE TABLE actaeon_chuni_static_trophies ( + id INT NOT NULL, + name VARCHAR(255), + rareType TINYINT, + explainText VARCHAR(255), + + PRIMARY KEY (id) +); diff --git a/migrations/sqls/20240308073811-create-chuni-static-system-voice-down.sql b/migrations/sqls/20240308073811-create-chuni-static-system-voice-down.sql new file mode 100644 index 0000000..db734c3 --- /dev/null +++ b/migrations/sqls/20240308073811-create-chuni-static-system-voice-down.sql @@ -0,0 +1 @@ +DROP TABLE actaeon_chuni_static_system_voice; diff --git a/migrations/sqls/20240308073811-create-chuni-static-system-voice-up.sql b/migrations/sqls/20240308073811-create-chuni-static-system-voice-up.sql new file mode 100644 index 0000000..fe5da62 --- /dev/null +++ b/migrations/sqls/20240308073811-create-chuni-static-system-voice-up.sql @@ -0,0 +1,9 @@ +CREATE TABLE actaeon_chuni_static_system_voice ( + id INT NOT NULL, + name VARCHAR(255), + sortName VARCHAR(255), + imagePath VARCHAR(255), + cuePath VARCHAR(255), + + PRIMARY KEY (id) +); diff --git a/migrations/sqls/20240308074314-create-chuni-static-name-plate-down.sql b/migrations/sqls/20240308074314-create-chuni-static-name-plate-down.sql new file mode 100644 index 0000000..9316a94 --- /dev/null +++ b/migrations/sqls/20240308074314-create-chuni-static-name-plate-down.sql @@ -0,0 +1 @@ +DROP TABLE actaeon_chuni_static_name_plate; diff --git a/migrations/sqls/20240308074314-create-chuni-static-name-plate-up.sql b/migrations/sqls/20240308074314-create-chuni-static-name-plate-up.sql new file mode 100644 index 0000000..b18186b --- /dev/null +++ b/migrations/sqls/20240308074314-create-chuni-static-name-plate-up.sql @@ -0,0 +1,8 @@ +CREATE TABLE actaeon_chuni_static_name_plate ( + id INT NOT NULL, + name VARCHAR(255), + sortName VARCHAR(255), + imagePath VARCHAR(255), + + PRIMARY KEY (id) +); diff --git a/migrations/sqls/20240308074528-create-chuni-static-map-icon-down.sql b/migrations/sqls/20240308074528-create-chuni-static-map-icon-down.sql new file mode 100644 index 0000000..9d651aa --- /dev/null +++ b/migrations/sqls/20240308074528-create-chuni-static-map-icon-down.sql @@ -0,0 +1 @@ +DROP TABLE actaeon_chuni_static_map_icon; diff --git a/migrations/sqls/20240308074528-create-chuni-static-map-icon-up.sql b/migrations/sqls/20240308074528-create-chuni-static-map-icon-up.sql new file mode 100644 index 0000000..7c0c191 --- /dev/null +++ b/migrations/sqls/20240308074528-create-chuni-static-map-icon-up.sql @@ -0,0 +1,8 @@ +CREATE TABLE actaeon_chuni_static_map_icon ( + id INT NOT NULL, + name VARCHAR(255), + sortName VARCHAR(255), + imagePath VARCHAR(255), + + PRIMARY KEY (id) +);