diff --git a/package.json b/package.json index 95ac02282..10cbfd23c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Open-Energy-Dashboard", - "version": "0.3.0", + "version": "0.5.0", "private": false, "license": "MPL-2.0", "repository": "https://github.com/OpenEnergyDashboard/OED", diff --git a/src/server/migrations/0.3.0-0.4.0/index.js b/src/server/migrations/0.3.0-0.5.0/index.js similarity index 53% rename from src/server/migrations/0.3.0-0.4.0/index.js rename to src/server/migrations/0.3.0-0.5.0/index.js index a2b279d13..dcf75ea5b 100644 --- a/src/server/migrations/0.3.0-0.4.0/index.js +++ b/src/server/migrations/0.3.0-0.5.0/index.js @@ -7,17 +7,17 @@ const sqlFile = database.sqlFile; module.exports = { fromVersion: '0.3.0', - toVersion: '0.4.0', + toVersion: '0.5.0', up: async db => { - await db.none(sqlFile('../migrations/0.3.0-0.4.0/sql/preferences/create_language_types_enum.sql')); - await db.none(sqlFile('../migrations/0.3.0-0.4.0/sql/preferences/add_language_column.sql')); - await db.none(sqlFile('../migrations/0.3.0-0.4.0/sql/logemail/create_log_table.sql')); - await db.none(sqlFile('../migrations/0.3.0-0.4.0/sql/meter_options/add_meter_options.sql')); - await db.none(sqlFile('../migrations/0.3.0-0.4.0/sql/baseline/create_baseline_table.sql')); - await db.none(sqlFile('../migrations/0.3.0-0.4.0/sql/baseline/create_function_get_average_reading.sql')); - await db.none(sqlFile('../migrations/0.3.0-0.4.0/sql/readings/set_reading_type_to_real.sql')); - await db.none(sqlFile('../migrations/0.3.0-0.4.0/sql/fast-pt-compression/create_compressed_reading_views.sql')); - await db.none(sqlFile('../migrations/0.3.0-0.4.0/sql/fast-pt-compression/create_function_get_compare_readings.sql')); - await db.none(sqlFile('../migrations/0.3.0-0.4.0/sql/compareReadings/create_function_get_compare_readings.sql')); + await db.none(sqlFile('../migrations/0.3.0-0.5.0/sql/preferences/create_language_types_enum.sql')); + await db.none(sqlFile('../migrations/0.3.0-0.5.0/sql/preferences/add_language_column.sql')); + await db.none(sqlFile('../migrations/0.3.0-0.5.0/sql/logemail/create_log_table.sql')); + await db.none(sqlFile('../migrations/0.3.0-0.5.0/sql/meter_options/add_meter_options.sql')); + await db.none(sqlFile('../migrations/0.3.0-0.5.0/sql/baseline/create_baseline_table.sql')); + await db.none(sqlFile('../migrations/0.3.0-0.5.0/sql/baseline/create_function_get_average_reading.sql')); + await db.none(sqlFile('../migrations/0.3.0-0.5.0/sql/readings/set_reading_type_to_real.sql')); + await db.none(sqlFile('../migrations/0.3.0-0.5.0/sql/fast-pt-compression/create_compressed_reading_views.sql')); + await db.none(sqlFile('../migrations/0.3.0-0.5.0/sql/fast-pt-compression/create_function_get_compare_readings.sql')); + await db.none(sqlFile('../migrations/0.3.0-0.5.0/sql/compareReadings/create_function_get_compare_readings.sql')); } }; diff --git a/src/server/migrations/0.3.0-0.4.0/sql/baseline/create_baseline_table.sql b/src/server/migrations/0.3.0-0.5.0/sql/baseline/create_baseline_table.sql similarity index 100% rename from src/server/migrations/0.3.0-0.4.0/sql/baseline/create_baseline_table.sql rename to src/server/migrations/0.3.0-0.5.0/sql/baseline/create_baseline_table.sql diff --git a/src/server/migrations/0.3.0-0.4.0/sql/baseline/create_function_get_average_reading.sql b/src/server/migrations/0.3.0-0.5.0/sql/baseline/create_function_get_average_reading.sql similarity index 100% rename from src/server/migrations/0.3.0-0.4.0/sql/baseline/create_function_get_average_reading.sql rename to src/server/migrations/0.3.0-0.5.0/sql/baseline/create_function_get_average_reading.sql diff --git a/src/server/migrations/0.3.0-0.4.0/sql/compareReadings/create_function_get_compare_readings.sql b/src/server/migrations/0.3.0-0.5.0/sql/compareReadings/create_function_get_compare_readings.sql similarity index 100% rename from src/server/migrations/0.3.0-0.4.0/sql/compareReadings/create_function_get_compare_readings.sql rename to src/server/migrations/0.3.0-0.5.0/sql/compareReadings/create_function_get_compare_readings.sql diff --git a/src/server/migrations/0.3.0-0.4.0/sql/fast-pt-compression/create_compressed_reading_views.sql b/src/server/migrations/0.3.0-0.5.0/sql/fast-pt-compression/create_compressed_reading_views.sql similarity index 100% rename from src/server/migrations/0.3.0-0.4.0/sql/fast-pt-compression/create_compressed_reading_views.sql rename to src/server/migrations/0.3.0-0.5.0/sql/fast-pt-compression/create_compressed_reading_views.sql diff --git a/src/server/migrations/0.3.0-0.4.0/sql/fast-pt-compression/create_function_get_compare_readings.sql b/src/server/migrations/0.3.0-0.5.0/sql/fast-pt-compression/create_function_get_compare_readings.sql similarity index 100% rename from src/server/migrations/0.3.0-0.4.0/sql/fast-pt-compression/create_function_get_compare_readings.sql rename to src/server/migrations/0.3.0-0.5.0/sql/fast-pt-compression/create_function_get_compare_readings.sql diff --git a/src/server/migrations/0.3.0-0.4.0/sql/logemail/create_log_table.sql b/src/server/migrations/0.3.0-0.5.0/sql/logemail/create_log_table.sql similarity index 100% rename from src/server/migrations/0.3.0-0.4.0/sql/logemail/create_log_table.sql rename to src/server/migrations/0.3.0-0.5.0/sql/logemail/create_log_table.sql diff --git a/src/server/migrations/0.3.0-0.4.0/sql/meter_options/add_meter_options.sql b/src/server/migrations/0.3.0-0.5.0/sql/meter_options/add_meter_options.sql similarity index 100% rename from src/server/migrations/0.3.0-0.4.0/sql/meter_options/add_meter_options.sql rename to src/server/migrations/0.3.0-0.5.0/sql/meter_options/add_meter_options.sql diff --git a/src/server/migrations/0.3.0-0.4.0/sql/preferences/add_language_column.sql b/src/server/migrations/0.3.0-0.5.0/sql/preferences/add_language_column.sql similarity index 100% rename from src/server/migrations/0.3.0-0.4.0/sql/preferences/add_language_column.sql rename to src/server/migrations/0.3.0-0.5.0/sql/preferences/add_language_column.sql diff --git a/src/server/migrations/0.3.0-0.4.0/sql/preferences/create_language_types_enum.sql b/src/server/migrations/0.3.0-0.5.0/sql/preferences/create_language_types_enum.sql similarity index 100% rename from src/server/migrations/0.3.0-0.4.0/sql/preferences/create_language_types_enum.sql rename to src/server/migrations/0.3.0-0.5.0/sql/preferences/create_language_types_enum.sql diff --git a/src/server/migrations/0.3.0-0.4.0/sql/readings/set_reading_type_to_real.sql b/src/server/migrations/0.3.0-0.5.0/sql/readings/set_reading_type_to_real.sql similarity index 100% rename from src/server/migrations/0.3.0-0.4.0/sql/readings/set_reading_type_to_real.sql rename to src/server/migrations/0.3.0-0.5.0/sql/readings/set_reading_type_to_real.sql diff --git a/src/server/migrations/registerMigration.js b/src/server/migrations/registerMigration.js index 89ea20961..ac53fad96 100644 --- a/src/server/migrations/registerMigration.js +++ b/src/server/migrations/registerMigration.js @@ -8,7 +8,7 @@ const migrations = [ /* eslint-disable global-require */ //require('./0.2.0-0.3.0-Template/indexTemplate'), - require('./0.3.0-0.4.0') + require('./0.3.0-0.5.0') /* eslint-disable global-require */ ];