fix(sql): Fehlende SQL-Dateien für anlage_accessory Tabelle
Die Tabelle war nur in der Migration vorhanden, aber nicht als SQL-Datei für Neuinstallationen. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
69dc7e8728
commit
677caffcf4
2 changed files with 31 additions and 0 deletions
12
sql/llx_kundenkarte_anlage_accessory.key.sql
Normal file
12
sql/llx_kundenkarte_anlage_accessory.key.sql
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
-- ========================================================================
|
||||||
|
-- Copyright (C) 2024 Data IT Solution
|
||||||
|
--
|
||||||
|
-- This program is free software: you can redistribute it and/or modify
|
||||||
|
-- it under the terms of the GNU General Public License as published by
|
||||||
|
-- the Free Software Foundation, either version 3 of the License, or
|
||||||
|
-- (at your option) any later version.
|
||||||
|
-- ========================================================================
|
||||||
|
|
||||||
|
ALTER TABLE llx_kundenkarte_anlage_accessory ADD UNIQUE INDEX uk_anlage_accessory (fk_anlage, fk_product);
|
||||||
|
ALTER TABLE llx_kundenkarte_anlage_accessory ADD INDEX idx_accessory_anlage (fk_anlage);
|
||||||
|
ALTER TABLE llx_kundenkarte_anlage_accessory ADD CONSTRAINT fk_accessory_anlage FOREIGN KEY (fk_anlage) REFERENCES llx_kundenkarte_anlage(rowid) ON DELETE CASCADE;
|
||||||
19
sql/llx_kundenkarte_anlage_accessory.sql
Normal file
19
sql/llx_kundenkarte_anlage_accessory.sql
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
-- ========================================================================
|
||||||
|
-- Copyright (C) 2024 Data IT Solution
|
||||||
|
--
|
||||||
|
-- This program is free software: you can redistribute it and/or modify
|
||||||
|
-- it under the terms of the GNU General Public License as published by
|
||||||
|
-- the Free Software Foundation, either version 3 of the License, or
|
||||||
|
-- (at your option) any later version.
|
||||||
|
-- ========================================================================
|
||||||
|
|
||||||
|
CREATE TABLE llx_kundenkarte_anlage_accessory (
|
||||||
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
fk_anlage integer NOT NULL,
|
||||||
|
fk_product integer NOT NULL,
|
||||||
|
qty double DEFAULT 1,
|
||||||
|
rang integer DEFAULT 0,
|
||||||
|
note varchar(255) DEFAULT NULL,
|
||||||
|
date_creation datetime DEFAULT NULL,
|
||||||
|
fk_user_creat integer DEFAULT NULL
|
||||||
|
) ENGINE=InnoDB;
|
||||||
Loading…
Reference in a new issue