mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-11-25 20:49:12 +11:00
update migration case sensitivity
This commit is contained in:
parent
f1658810b8
commit
900d74eae6
5 changed files with 6 additions and 7 deletions
|
@ -181,7 +181,7 @@ module.exports = {
|
|||
type: Sequelize.DATE
|
||||
}
|
||||
})
|
||||
await queryInterface.addColumn("users", "privacy", {
|
||||
await queryInterface.addColumn("Users", "privacy", {
|
||||
type: Sequelize.JSON,
|
||||
defaultValue: {
|
||||
communications: {
|
||||
|
@ -193,7 +193,7 @@ module.exports = {
|
|||
},
|
||||
allowNull: false
|
||||
})
|
||||
await queryInterface.createTable("friends", {
|
||||
await queryInterface.createTable("Friends", {
|
||||
id: {
|
||||
allowNull: false,
|
||||
autoIncrement: true,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
module.exports = {
|
||||
up: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.addColumn("friends", "status", {
|
||||
await queryInterface.addColumn("Friends", "status", {
|
||||
type: Sequelize.ENUM(["pending", "accepted", "declined"]),
|
||||
allowNull: false,
|
||||
defaultValue: "pending"
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
|
||||
module.exports = {
|
||||
up: async (queryInterface, Sequelize) => {
|
||||
// modify status column
|
||||
await queryInterface.changeColumn("friends", "status", {
|
||||
await queryInterface.changeColumn("Friends", "status", {
|
||||
type: Sequelize.ENUM([
|
||||
"pending",
|
||||
"pendingCanAccept",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
module.exports = {
|
||||
up: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.addColumn("chatAssociations", "lastRead", {
|
||||
await queryInterface.addColumn("ChatAssociations", "lastRead", {
|
||||
type: Sequelize.BIGINT,
|
||||
allowNull: true
|
||||
})
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
module.exports = {
|
||||
async up(queryInterface, Sequelize) {
|
||||
await queryInterface.addColumn("messages", "replyId", {
|
||||
await queryInterface.addColumn("Messages", "replyId", {
|
||||
type: Sequelize.BIGINT,
|
||||
defaultValue: null
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue