Revision ffb54c7e
Von Bernd Bleßmann vor fast 11 Jahren hinzugefügt
SL/DB/MetaSetup/CsvImportReport.pm | ||
---|---|---|
11 | 11 |
__PACKAGE__->meta->columns( |
12 | 12 |
file => { type => 'text', not_null => 1 }, |
13 | 13 |
id => { type => 'serial', not_null => 1 }, |
14 |
numheaders => { type => 'integer', not_null => 1 }, |
|
14 | 15 |
numrows => { type => 'integer', not_null => 1 }, |
15 | 16 |
profile_id => { type => 'integer', not_null => 1 }, |
16 | 17 |
session_id => { type => 'text', not_null => 1 }, |
sql/Pg-upgrade2/csv_import_reports_add_numheaders.sql | ||
---|---|---|
1 |
-- @tag: csv_import_reports_add_numheaders |
|
2 |
-- @description: Anzahl der Header-Zeilen in Csv Import Report speichern |
|
3 |
-- @depends: csv_import_report_cache |
|
4 |
-- @encoding: utf-8 |
|
5 |
|
|
6 |
ALTER TABLE csv_import_reports ADD COLUMN numheaders INTEGER; |
|
7 |
UPDATE csv_import_reports SET numheaders = 1; |
|
8 |
ALTER TABLE csv_import_reports ALTER COLUMN numheaders SET NOT NULL; |
Auch abrufbar als: Unified diff
Neue Spalte numheaders in csv_import_reports für Reports bei Multiplex-CSV-Daten