- CitrineOS core extracted (CSMS OCPP 2.0.1) - OpenOCPP extracted (firmware OCPP 1.6J/2.0.1) - ShapeShifter library installed (pip install -e) - ShapeShifter specification extracted - EVerest extracted TODO updated with progress
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
// SPDX-FileCopyrightText: 2025 Contributors to the CitrineOS Project
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
import { DataTypes, QueryInterface } from 'sequelize';
|
|
|
|
export default {
|
|
up: async (queryInterface: QueryInterface) => {
|
|
await queryInterface.addColumn('Tenants', 'partyId', {
|
|
type: DataTypes.STRING,
|
|
allowNull: false,
|
|
defaultValue: 'default',
|
|
});
|
|
await queryInterface.addColumn('Tenants', 'countryCode', {
|
|
type: DataTypes.STRING,
|
|
allowNull: false,
|
|
defaultValue: 'US',
|
|
});
|
|
await queryInterface.addColumn('Tenants', 'url', {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
});
|
|
await queryInterface.addColumn('Tenants', 'serverProfileOCPI', {
|
|
type: DataTypes.JSONB,
|
|
allowNull: true,
|
|
});
|
|
},
|
|
|
|
down: async (queryInterface: QueryInterface) => {
|
|
await queryInterface.removeColumn('Tenants', 'partyId');
|
|
await queryInterface.removeColumn('Tenants', 'countryCode');
|
|
await queryInterface.removeColumn('Tenants', 'url');
|
|
await queryInterface.removeColumn('Tenants', 'serverProfileOCPI');
|
|
},
|
|
};
|