Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/**
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
export async function up(knex) {
await knex.schema.alterTable("feature_flag_events", (table) => {
table.dropForeign(
["created_by_subscriber_id"],
"feature_flag_events_created_by_subscriber_id_foreign",
);
});
}

/**
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
export async function down(knex) {
await knex.schema.alterTable("feature_flag_events", (table) => {
table
.foreign(
"created_by_subscriber_id",
"feature_flag_events_created_by_subscriber_id_foreign",
)
.references("id")
.inTable("subscribers");
});
}
Loading