Alle ISO-8859-15-codierten Files nach UTF-8 encodieren
[kivitendo-erp.git] / sql / Pg-upgrade2 / csv_import_profiles.sql
1 -- @tag: csv_import_profiles
2 -- @description: CSV-Import-Profile für Stammdaten
3 -- @depends: release_2_6_1
4 CREATE TABLE csv_import_profiles (
5        id SERIAL        NOT NULL,
6        name text        NOT NULL,
7        type varchar(20) NOT NULL,
8        is_default boolean DEFAULT FALSE,
9
10        PRIMARY KEY (id),
11        UNIQUE (name)
12 );
13
14 CREATE TABLE csv_import_profile_settings (
15        id SERIAL                     NOT NULL,
16        csv_import_profile_id integer NOT NULL,
17        key text                      NOT NULL,
18        value text,
19
20        PRIMARY KEY (id),
21        FOREIGN KEY (csv_import_profile_id) REFERENCES csv_import_profiles (id),
22        UNIQUE (csv_import_profile_id, key)
23 );