-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #151 from InspiredAccessFoundation/new-map-page
New map page
- Loading branch information
Showing
37 changed files
with
2,235 additions
and
596 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
'use strict'; | ||
|
||
var Sequelize = require('sequelize'); | ||
|
||
/** | ||
* Actions summary: | ||
* | ||
* changeColumn "streetAddress" on table "tables" | ||
* changeColumn "city" on table "tables" | ||
* changeColumn "state" on table "tables" | ||
* changeColumn "zipcode" on table "tables" | ||
* changeColumn "zipcode" on table "tables" | ||
* changeColumn "restroomType" on table "tables" | ||
* changeColumn "tableStyle" on table "tables" | ||
* changeColumn "tableNotes" on table "tables" | ||
* changeColumn "publicAccessibility" on table "tables" | ||
* changeColumn "hours" on table "tables" | ||
* changeColumn "additionalInfo" on table "tables" | ||
* | ||
**/ | ||
|
||
var info = { | ||
"revision": 3, | ||
"name": "table-updates", | ||
"created": "2023-01-25T13:42:02.665Z", | ||
"comment": "" | ||
}; | ||
|
||
var migrationCommands = [{ | ||
fn: "changeColumn", | ||
params: [ | ||
"tables", | ||
"streetAddress", | ||
{ | ||
"type": Sequelize.STRING, | ||
"field": "streetAddress", | ||
"allowNull": false | ||
} | ||
] | ||
}, | ||
{ | ||
fn: "changeColumn", | ||
params: [ | ||
"tables", | ||
"city", | ||
{ | ||
"type": Sequelize.STRING, | ||
"field": "city", | ||
"allowNull": false | ||
} | ||
] | ||
}, | ||
{ | ||
fn: "changeColumn", | ||
params: [ | ||
"tables", | ||
"state", | ||
{ | ||
"type": Sequelize.STRING, | ||
"field": "state", | ||
"allowNull": false | ||
} | ||
] | ||
}, | ||
{ | ||
fn: "changeColumn", | ||
params: [ | ||
"tables", | ||
"zipcode", | ||
{ | ||
"type": Sequelize.INTEGER, | ||
"field": "zipcode", | ||
"max": 5, | ||
"allowNull": false | ||
} | ||
] | ||
}, | ||
{ | ||
fn: "changeColumn", | ||
params: [ | ||
"tables", | ||
"zipcode", | ||
{ | ||
"type": Sequelize.INTEGER, | ||
"field": "zipcode", | ||
"max": 5, | ||
"allowNull": false | ||
} | ||
] | ||
}, | ||
{ | ||
fn: "changeColumn", | ||
params: [ | ||
"tables", | ||
"restroomType", | ||
{ | ||
"type": Sequelize.ENUM('men', 'women', 'family', 'other'), | ||
"field": "restroomType", | ||
"allowNull": false | ||
} | ||
] | ||
}, | ||
{ | ||
fn: "changeColumn", | ||
params: [ | ||
"tables", | ||
"tableStyle", | ||
{ | ||
"type": Sequelize.ENUM('fixed-height', 'adjustable', 'portable'), | ||
"field": "tableStyle", | ||
"allowNull": false | ||
} | ||
] | ||
}, | ||
{ | ||
fn: "changeColumn", | ||
params: [ | ||
"tables", | ||
"tableNotes", | ||
{ | ||
"type": Sequelize.TEXT, | ||
"field": "tableNotes", | ||
"allowNull": true | ||
} | ||
] | ||
}, | ||
{ | ||
fn: "changeColumn", | ||
params: [ | ||
"tables", | ||
"publicAccessibility", | ||
{ | ||
"type": Sequelize.ENUM('Patrons/Patients Only', 'Accessible to the Public'), | ||
"field": "publicAccessibility", | ||
"allowNull": false | ||
} | ||
] | ||
}, | ||
{ | ||
fn: "changeColumn", | ||
params: [ | ||
"tables", | ||
"hours", | ||
{ | ||
"type": Sequelize.TEXT, | ||
"field": "hours", | ||
"allowNull": true | ||
} | ||
] | ||
}, | ||
{ | ||
fn: "changeColumn", | ||
params: [ | ||
"tables", | ||
"additionalInfo", | ||
{ | ||
"type": Sequelize.TEXT, | ||
"field": "additionalInfo", | ||
"allowNull": true | ||
} | ||
] | ||
} | ||
]; | ||
|
||
module.exports = { | ||
pos: 0, | ||
up: function (queryInterface, Sequelize) { | ||
var index = this.pos; | ||
return new Promise(function (resolve, reject) { | ||
function next() { | ||
if (index < migrationCommands.length) { | ||
let command = migrationCommands[index]; | ||
console.log("[#" + index + "] execute: " + command.fn); | ||
index++; | ||
queryInterface[command.fn].apply(queryInterface, command.params).then(next, reject); | ||
} | ||
else | ||
resolve(); | ||
} | ||
next(); | ||
}); | ||
}, | ||
info: info | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
'use strict'; | ||
|
||
var Sequelize = require('sequelize'); | ||
|
||
/** | ||
* Actions summary: | ||
* | ||
* addColumn "authorId" to table "comments" | ||
* addColumn "tableId" to table "comments" | ||
* addColumn "uploaderId" to table "pictures" | ||
* addColumn "tableId" to table "pictures" | ||
* | ||
**/ | ||
|
||
var info = { | ||
"revision": 4, | ||
"name": "id-consistency", | ||
"created": "2023-01-25T13:44:31.776Z", | ||
"comment": "" | ||
}; | ||
|
||
module.exports = { | ||
pos: 0, | ||
up: function (queryInterface, Sequelize) { | ||
queryInterface.renameColumn('pictures', 'tableID', 'tableId') | ||
queryInterface.renameColumn('pictures', 'uploaderID', 'uploaderId') | ||
queryInterface.renameColumn('comments', 'tableID', 'tableId') | ||
queryInterface.renameColumn('comments', 'authorID', 'authorId') | ||
}, | ||
info: info | ||
}; |
Oops, something went wrong.