Skip to content

Commit

Permalink
Remove migration_profile_backfill_log table (#3990)
Browse files Browse the repository at this point in the history
This was used in a migration (see migration script 17) and is no longer
used.
  • Loading branch information
dmjb authored Jul 25, 2024
1 parent 5ac98eb commit b9f338b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
18 changes: 18 additions & 0 deletions database/migrations/000077_drop_profile_migration.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-- Copyright 2024 Stacklok, Inc
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.

CREATE TABLE migration_profile_backfill_log (
profile_id UUID PRIMARY KEY,
FOREIGN KEY (profile_id) REFERENCES profiles (id) ON DELETE CASCADE
);
15 changes: 15 additions & 0 deletions database/migrations/000077_drop_profile_migration.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-- Copyright 2024 Stacklok, Inc
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.

DROP TABLE IF EXISTS migration_profile_backfill_log;
4 changes: 0 additions & 4 deletions internal/db/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b9f338b

Please sign in to comment.