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) {