Skip to content

Instantly share code, notes, and snippets.

@radzionc
Last active October 7, 2020 10:00
Show Gist options
  • Save radzionc/8af50436e57df5071baab85ec073e774 to your computer and use it in GitHub Desktop.
Save radzionc/8af50436e57df5071baab85ec073e774 to your computer and use it in GitHub Desktop.
const TABLE_NAME_POSTFIX = `_${process.env.ENV}`
const TABLES_NAMES = {
users: `users_${process.env.ENV}`,
projects: `projects_${process.env.ENV}`,
// we will use it know the index of last migration
projects: `management_${process.env.ENV}`,
// other tables names ...
}
const TABLES_PARAMS = [
tableParams(TABLES_NAMES.users, 'id'),
tableParams(TABLES_NAMES.projects, 'id'),
tableParams(TABLES_NAMES.management, 'id'),
// other tables params ...
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment