IKHSAN
EN Read in EnglishID

pixies

Publik
Branch
master
Commit terakhir
9b0697f26 Oktober 2026

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

Buka 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
        });
    }
}
byte
612
baris
22
Jenis
js
Commit terakhir
26 Oktober 2026