IKHSAN
ENID Baca dalam Bahasa Indonesia

pixies

Public
Branch
master
Latest commit
9b0697f26 October 2026

0003-add-server-name-host-columns.js

Open raw
import { DataTypes } from 'sequelize';

export async function up(queryInterface) {
    const tableDescription = await queryInterface.describeTable('speedtests');

    if (!tableDescription.serverName) {
        await queryInterface.addColumn('speedtests', 'serverName', {
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null
        });
    }

    if (!tableDescription.serverHost) {
        await queryInterface.addColumn('speedtests', 'serverHost', {
            type: DataTypes.STRING,
            allowNull: true,
            defaultValue: null
        });
    }
}
bytes
612
lines
22
Type
js
Latest commit
26 October 2026