Revert "generic_translations: Einträge automatisch löschen, wenn Sprache gelöscht...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 13 Jul 2016 11:58:45 +0000 (13:58 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 13 Jul 2016 11:58:45 +0000 (13:58 +0200)
This reverts commit 86299a413d457abfa10f657b243d00b194702824.

sql/Pg-upgrade2/delete_from_generic_translations_on_language_deletion.sql [deleted file]

diff --git a/sql/Pg-upgrade2/delete_from_generic_translations_on_language_deletion.sql b/sql/Pg-upgrade2/delete_from_generic_translations_on_language_deletion.sql
deleted file mode 100644 (file)
index e01b51c..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
--- @tag: delete_from_generic_translations_on_language_deletion
--- @description: Übersetzungen automatisch löschen, wenn die dazugehörige Sprache gelöscht wird
--- @depends: release_3_3_0
-ALTER TABLE generic_translations
-  DROP CONSTRAINT generic_translations_language_id_fkey,
-  ADD CONSTRAINT generic_translations_language_id_fkey
-    FOREIGN KEY (language_id)
-    REFERENCES language (id)
-    ON DELETE CASCADE;
-
-DELETE FROM generic_translations
-WHERE language_id NOT IN (
-  SELECT id
-  FROM language
-);