fixed migration

This commit is contained in:
Dmitri 2026-06-28 15:13:25 +02:00
parent 63909ef66a
commit 2f56d1af05

View File

@ -87,7 +87,6 @@ module.exports = {
settings_json: { settings_json: {
type: Sequelize.JSON, type: Sequelize.JSON,
allowNull: false, allowNull: false,
defaultValue: DEFAULT_SETTINGS,
}, },
createdById: { createdById: {
type: Sequelize.UUID, type: Sequelize.UUID,
@ -129,7 +128,6 @@ module.exports = {
settings_json: { settings_json: {
type: Sequelize.JSON, type: Sequelize.JSON,
allowNull: false, allowNull: false,
defaultValue: {},
}, },
createdById: { createdById: {
type: Sequelize.UUID, type: Sequelize.UUID,
@ -182,7 +180,7 @@ module.exports = {
[ [
{ {
id: uuidv4(), id: uuidv4(),
settings_json: DEFAULT_SETTINGS, settings_json: JSON.stringify(DEFAULT_SETTINGS),
createdAt: new Date(), createdAt: new Date(),
updatedAt: new Date(), updatedAt: new Date(),
}, },