Sprache um Attribut ungültig erweitert
authorJan Büren <jan@kivitendo.de>
Thu, 31 Mar 2022 09:45:54 +0000 (11:45 +0200)
committerJan Büren <jan@kivitendo.de>
Thu, 31 Mar 2022 12:03:40 +0000 (14:03 +0200)
SL/DB/MetaSetup/Language.pm
sql/Pg-upgrade2/language_obsolete.sql [new file with mode: 0644]

index 9aa8039..96d0a0a 100644 (file)
@@ -14,6 +14,7 @@ __PACKAGE__->meta->columns(
   id                  => { type => 'integer', not_null => 1, sequence => 'id' },
   itime               => { type => 'timestamp', default => 'now()' },
   mtime               => { type => 'timestamp' },
+  obsolete            => { type => 'boolean', default => 'false' },
   output_dateformat   => { type => 'text' },
   output_longdates    => { type => 'boolean' },
   output_numberformat => { type => 'text' },
diff --git a/sql/Pg-upgrade2/language_obsolete.sql b/sql/Pg-upgrade2/language_obsolete.sql
new file mode 100644 (file)
index 0000000..53d28b5
--- /dev/null
@@ -0,0 +1,6 @@
+-- @tag: language_obsolete
+-- @description: Sprachen ungültig setzen
+-- @depends: release_3_6_0
+-- @ignore: 0
+
+ALTER TABLE language ADD COLUMN obsolete BOOLEAN DEFAULT FALSE;