From a7e863da6aef2c4d8cc576cdb00cda24f8482a4c Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Wed, 23 Sep 2020 02:34:35 +0300 Subject: [PATCH] Move migration files within src This means that the db folder no longer contains any code required for the bot to run. --- {db => src/data}/migrations/20171223203915_create_tables.js | 0 .../data}/migrations/20180224235946_add_close_at_to_threads.js | 0 .../data}/migrations/20180421161550_add_alert_id_to_threads.js | 0 .../20180920224224_remove_is_anonymous_from_snippets.js | 0 .../20190306204728_add_scheduled_close_silent_to_threads.js | 0 .../20190306211534_add_scheduled_suspend_to_threads.js | 0 .../data}/migrations/20190609161116_create_updates_table.js | 0 .../20190609193213_add_expires_at_to_blocked_users.js | 0 .../migrations/20191206002418_add_number_to_thread_messages.js | 0 .../20191206011638_add_thread_message_id_to_thread_messages.js | 0 .../20191206180113_add_dm_channel_id_to_thread_messages.js | 0 .../migrations/20200813230319_separate_message_components.js | 0 .../20200814011007_add_next_message_number_to_threads.js | 0 .../migrations/20200818214801_change_alert_id_to_alert_ids.js | 0 src/knexConfig.js | 2 +- 15 files changed, 1 insertion(+), 1 deletion(-) rename {db => src/data}/migrations/20171223203915_create_tables.js (100%) rename {db => src/data}/migrations/20180224235946_add_close_at_to_threads.js (100%) rename {db => src/data}/migrations/20180421161550_add_alert_id_to_threads.js (100%) rename {db => src/data}/migrations/20180920224224_remove_is_anonymous_from_snippets.js (100%) rename {db => src/data}/migrations/20190306204728_add_scheduled_close_silent_to_threads.js (100%) rename {db => src/data}/migrations/20190306211534_add_scheduled_suspend_to_threads.js (100%) rename {db => src/data}/migrations/20190609161116_create_updates_table.js (100%) rename {db => src/data}/migrations/20190609193213_add_expires_at_to_blocked_users.js (100%) rename {db => src/data}/migrations/20191206002418_add_number_to_thread_messages.js (100%) rename {db => src/data}/migrations/20191206011638_add_thread_message_id_to_thread_messages.js (100%) rename {db => src/data}/migrations/20191206180113_add_dm_channel_id_to_thread_messages.js (100%) rename {db => src/data}/migrations/20200813230319_separate_message_components.js (100%) rename {db => src/data}/migrations/20200814011007_add_next_message_number_to_threads.js (100%) rename {db => src/data}/migrations/20200818214801_change_alert_id_to_alert_ids.js (100%) diff --git a/db/migrations/20171223203915_create_tables.js b/src/data/migrations/20171223203915_create_tables.js similarity index 100% rename from db/migrations/20171223203915_create_tables.js rename to src/data/migrations/20171223203915_create_tables.js diff --git a/db/migrations/20180224235946_add_close_at_to_threads.js b/src/data/migrations/20180224235946_add_close_at_to_threads.js similarity index 100% rename from db/migrations/20180224235946_add_close_at_to_threads.js rename to src/data/migrations/20180224235946_add_close_at_to_threads.js diff --git a/db/migrations/20180421161550_add_alert_id_to_threads.js b/src/data/migrations/20180421161550_add_alert_id_to_threads.js similarity index 100% rename from db/migrations/20180421161550_add_alert_id_to_threads.js rename to src/data/migrations/20180421161550_add_alert_id_to_threads.js diff --git a/db/migrations/20180920224224_remove_is_anonymous_from_snippets.js b/src/data/migrations/20180920224224_remove_is_anonymous_from_snippets.js similarity index 100% rename from db/migrations/20180920224224_remove_is_anonymous_from_snippets.js rename to src/data/migrations/20180920224224_remove_is_anonymous_from_snippets.js diff --git a/db/migrations/20190306204728_add_scheduled_close_silent_to_threads.js b/src/data/migrations/20190306204728_add_scheduled_close_silent_to_threads.js similarity index 100% rename from db/migrations/20190306204728_add_scheduled_close_silent_to_threads.js rename to src/data/migrations/20190306204728_add_scheduled_close_silent_to_threads.js diff --git a/db/migrations/20190306211534_add_scheduled_suspend_to_threads.js b/src/data/migrations/20190306211534_add_scheduled_suspend_to_threads.js similarity index 100% rename from db/migrations/20190306211534_add_scheduled_suspend_to_threads.js rename to src/data/migrations/20190306211534_add_scheduled_suspend_to_threads.js diff --git a/db/migrations/20190609161116_create_updates_table.js b/src/data/migrations/20190609161116_create_updates_table.js similarity index 100% rename from db/migrations/20190609161116_create_updates_table.js rename to src/data/migrations/20190609161116_create_updates_table.js diff --git a/db/migrations/20190609193213_add_expires_at_to_blocked_users.js b/src/data/migrations/20190609193213_add_expires_at_to_blocked_users.js similarity index 100% rename from db/migrations/20190609193213_add_expires_at_to_blocked_users.js rename to src/data/migrations/20190609193213_add_expires_at_to_blocked_users.js diff --git a/db/migrations/20191206002418_add_number_to_thread_messages.js b/src/data/migrations/20191206002418_add_number_to_thread_messages.js similarity index 100% rename from db/migrations/20191206002418_add_number_to_thread_messages.js rename to src/data/migrations/20191206002418_add_number_to_thread_messages.js diff --git a/db/migrations/20191206011638_add_thread_message_id_to_thread_messages.js b/src/data/migrations/20191206011638_add_thread_message_id_to_thread_messages.js similarity index 100% rename from db/migrations/20191206011638_add_thread_message_id_to_thread_messages.js rename to src/data/migrations/20191206011638_add_thread_message_id_to_thread_messages.js diff --git a/db/migrations/20191206180113_add_dm_channel_id_to_thread_messages.js b/src/data/migrations/20191206180113_add_dm_channel_id_to_thread_messages.js similarity index 100% rename from db/migrations/20191206180113_add_dm_channel_id_to_thread_messages.js rename to src/data/migrations/20191206180113_add_dm_channel_id_to_thread_messages.js diff --git a/db/migrations/20200813230319_separate_message_components.js b/src/data/migrations/20200813230319_separate_message_components.js similarity index 100% rename from db/migrations/20200813230319_separate_message_components.js rename to src/data/migrations/20200813230319_separate_message_components.js diff --git a/db/migrations/20200814011007_add_next_message_number_to_threads.js b/src/data/migrations/20200814011007_add_next_message_number_to_threads.js similarity index 100% rename from db/migrations/20200814011007_add_next_message_number_to_threads.js rename to src/data/migrations/20200814011007_add_next_message_number_to_threads.js diff --git a/db/migrations/20200818214801_change_alert_id_to_alert_ids.js b/src/data/migrations/20200818214801_change_alert_id_to_alert_ids.js similarity index 100% rename from db/migrations/20200818214801_change_alert_id_to_alert_ids.js rename to src/data/migrations/20200818214801_change_alert_id_to_alert_ids.js diff --git a/src/knexConfig.js b/src/knexConfig.js index e72a52d..3510afe 100644 --- a/src/knexConfig.js +++ b/src/knexConfig.js @@ -31,7 +31,7 @@ module.exports = { useNullAsDefault: true, migrations: { - directory: path.resolve(__dirname, "..", "db", "migrations"), + directory: path.resolve(__dirname, "data", "migrations"), }, log: { warn(message) {