-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add migration to drop the auth_user table
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-- this change cannot be undone, sorry |
25 changes: 25 additions & 0 deletions
25
resources/migrations/20250108123417-remove-auth-user.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
-- Drop the references to the auth_user table and the auth_user table | ||
-- itself, as users are now handled in LDAP | ||
|
||
ALTER TABLE documents_version | ||
DROP FOREIGN KEY IF EXISTS created_by_id_refs_id_1368ec995012716; | ||
|
||
--;; | ||
|
||
ALTER TABLE documents_version | ||
DROP COLUMN IF EXISTS created_by_id; | ||
|
||
--;; | ||
|
||
ALTER TABLE documents_document | ||
DROP FOREIGN KEY IF EXISTS assigned_to_id_refs_id_76390739499bcb48; | ||
|
||
--;; | ||
|
||
ALTER TABLE documents_document | ||
DROP COLUMN IF EXISTS assigned_to_id; | ||
|
||
--;; | ||
|
||
DROP TABLE auth_user; | ||
|