mirror of
https://codeberg.org/MarkusThielker/finances.git
synced 2025-07-01 19:19:18 +00:00
N-FIN-79: migrate database dropping lucia tables
This commit is contained in:
parent
ba71cbef0e
commit
57f3381829
2 changed files with 28 additions and 29 deletions
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the `lucia_session` table. If the table is not empty, all the data it contains will be lost.
|
||||
- You are about to drop the `lucia_user` table. If the table is not empty, all the data it contains will be lost.
|
||||
|
||||
*/
|
||||
-- DropForeignKey
|
||||
ALTER TABLE "categories"
|
||||
DROP CONSTRAINT "categories_user_id_fkey";
|
||||
|
||||
-- DropForeignKey
|
||||
ALTER TABLE "entities"
|
||||
DROP CONSTRAINT "entities_user_id_fkey";
|
||||
|
||||
-- DropForeignKey
|
||||
ALTER TABLE "lucia_session"
|
||||
DROP CONSTRAINT "lucia_session_userId_fkey";
|
||||
|
||||
-- DropForeignKey
|
||||
ALTER TABLE "payments"
|
||||
DROP CONSTRAINT "payments_user_id_fkey";
|
||||
|
||||
-- DropTable
|
||||
DROP TABLE "lucia_session";
|
||||
|
||||
-- DropTable
|
||||
DROP TABLE "lucia_user";
|
Loading…
Add table
Add a link
Reference in a new issue