CJS -> ESM

This commit is contained in:
2025-03-05 12:19:35 -07:00
parent 5a8611afbc
commit bcc39d5f38
33 changed files with 228 additions and 282 deletions

View File

@@ -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");
}
};

View File

@@ -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");
}
};