X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/a5a42ed1bf23da4a35b675ce00781fea99df2acd..08e48f66590f580cbe2c8e3df76883d88b4c0fef:/sql/Pg-upgrade2/csv_import_report_cache.sql

diff --git a/sql/Pg-upgrade2/csv_import_report_cache.sql b/sql/Pg-upgrade2/csv_import_report_cache.sql
index e401b8397..88bec343b 100644
--- a/sql/Pg-upgrade2/csv_import_report_cache.sql
+++ b/sql/Pg-upgrade2/csv_import_report_cache.sql
@@ -1,14 +1,14 @@
 -- @tag: csv_import_report_cache
 -- @description: Csv Import Cache
 -- @depends: csv_import_profiles_2
--- @encoding: utf-8
 
 CREATE TABLE csv_import_reports (
   id                   SERIAL PRIMARY KEY,
   session_id           TEXT NOT NULL,
   profile_id           INTEGER NOT NULL REFERENCES csv_import_profiles(id),
   type                 TEXT NOT NULL,
-  file                 TEXT NOT NULL
+  file                 TEXT NOT NULL,
+  numrows              INTEGER NOT NULL
 );
 
 CREATE TABLE csv_import_report_rows (
@@ -28,3 +28,5 @@ CREATE TABLE csv_import_report_status (
 );
 
 ALTER TABLE csv_import_profiles DROP constraint "csv_import_profiles_name_key";
+
+CREATE INDEX "csv_import_report_rows_index_row" ON csv_import_report_rows (row);
