X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/a60b31d79b1ec87fbb804d53a4bf09186eda8ea3..63f2cbc1aeb2051fe9cb34ddc0d39801a9db7346:/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..e3f5cd40e 100644 --- a/sql/Pg-upgrade2/csv_import_report_cache.sql +++ b/sql/Pg-upgrade2/csv_import_report_cache.sql @@ -8,7 +8,8 @@ CREATE TABLE csv_import_reports ( 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 +29,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);