mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 06:04:05 +00:00
CJS -> ESM
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"use strict";
|
||||
/** @type {import("sequelize-cli").Migration} */
|
||||
module.exports = {
|
||||
async up(queryInterface, Sequelize) {
|
||||
export default {
|
||||
up: async function (queryInterface, Sequelize) {
|
||||
await queryInterface.createTable("playlists", {
|
||||
id: {
|
||||
allowNull: false,
|
||||
@@ -28,7 +28,7 @@ module.exports = {
|
||||
}
|
||||
});
|
||||
},
|
||||
async down(queryInterface, Sequelize) {
|
||||
down: async function (queryInterface, Sequelize) {
|
||||
await queryInterface.dropTable("playlists");
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use strict";
|
||||
/** @type {import("sequelize-cli").Migration} */
|
||||
module.exports = {
|
||||
async up(queryInterface, Sequelize) {
|
||||
export default {
|
||||
up: async function (queryInterface, Sequelize) {
|
||||
await queryInterface.createTable("links", {
|
||||
id: {
|
||||
allowNull: false,
|
||||
@@ -28,7 +28,7 @@ module.exports = {
|
||||
}
|
||||
});
|
||||
},
|
||||
async down(queryInterface, Sequelize) {
|
||||
down: async function (queryInterface, Sequelize) {
|
||||
await queryInterface.dropTable("links");
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user