Skip to content

Commit

Permalink
Add migration to drop the auth_user table
Browse files Browse the repository at this point in the history
  • Loading branch information
egli committed Jan 8, 2025
1 parent 5966c3d commit 7448deb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
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 resources/migrations/20250108123417-remove-auth-user.up.sql
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;

0 comments on commit 7448deb

Please sign in to comment.