20 lines
433 B
JavaScript
20 lines
433 B
JavaScript
/**
|
|
* @param { import("knex").Knex } knex
|
|
* @returns { Promise<void> }
|
|
*/
|
|
exports.up = function(knex) {
|
|
return knex.schema.alterTable('domain', (table) => {
|
|
table.tinyint('in_cloudflare').defaultTo(0);
|
|
});
|
|
};
|
|
|
|
/**
|
|
* @param { import("knex").Knex } knex
|
|
* @returns { Promise<void> }
|
|
*/
|
|
exports.down = function(knex) {
|
|
return knex.schema.alterTable('domain', (table) => {
|
|
table.dropColumn('in_cloudflare');
|
|
});
|
|
};
|