forked from ab-pm/node-pg-migrate
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modify runner #1
Open
valerii-kovalov
wants to merge
188
commits into
master
Choose a base branch
from
modify-runner
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you have a migration that does not export a function with the same name as the direction (`up` or `down`) then the migration runner will fail with an error. This commit improves the error message to make it easier to diagnose the problem.
* Updates to docs - specifying schema for trigger_name * Fix definition file
* Update all non-major dependencies * Lint fix
* Add typescript to devDependencies * Initiate tsconfig * Copy content from lib to src * Change file extensions to ts * Use import/export statements * Use import/export statements * Override prettier config for ts * Define class members * Export runner * Ignore template files * Add types for mkdirp * Move type defs to appropriate implementations * Move DB definition to db * Organize imports * Init definitions for createSchemalize * Move RunnerOption to runner file * Add PgType to definitions * Improve type definitions * Use esModuleInterop * Use module.exports for Migration * Use module.exports for db * Use module.exports for runner * Seems we need both: export default and module.exports * Improve type definitions * Improve type definitions * Add MigrationOptions * Add build command * Undo formatting * Add type MigrationDirection * Add build before compile * Add interface RunMigration * Add interface RunMigration * Merge branch 'typescript' of github.com:Shinigami92/node-pg-migrate into typescript * Revoke push of yarn.lock * Define function argument parameters * Improve type definitions * Remove string from ColumnDefinitions * Improve type definitions * Ignore lib folder * TriggerOptions extends FunctionOptions * Use module.exports.loadMigrationFiles * Set noImplicitAny * Add type definitions * Set indexMethod to string * Define CreateSchemaOptions * Add parameter type definitions * Improve type definitions * Improve type definitions * Remove options from lock * Improve query with string type * Key of ColumnDefinitions can be a string * Improve types of storage parameter * Move templates * Ignore tsc exit code * Remove generated files * Fixing ts errors * Few type fixes
* Tests in TS * Fixing some some typings in tests * Correct handling of shorthands * Extra config for tests, clearing dist folder * Better tests typing
* Configuring eslint, prettier, ... * handling exports * Fix mocking db in tests * Removing rule
* Using definitions for PgType * Removed rule
* Refactored types * Fixed import
* Alternative for transpiling (salsita#522) * Support for TS migrations * Typing for shorthands * Fixed lint * Checks in custom migration
* Strict TS * Fixed TS error
* Updates to docs - specifying schema for opclass * Fix definition file - CreateIndexOptions
Co-authored-by: Renovate Bot <[email protected]>
…can include useful debugging information. (salsita#660)
# Conflicts resolved: # .eslintrc.js # docs/api.md # docs/migrations.md # index.d.ts # lib/db.js # lib/migration-builder.js # lib/migration.js # lib/operations/functions.js # lib/operations/policies.js # lib/runner.js # package-lock.json # package.json # test/db-test.js # test/migration-test.js # test/migrations/005_table_test.js # test/migrations/010_column_test.js # test/migrations/013_column_alter_test.js # test/migrations/015_add_constraint_test.js # test/migrations/026_set_type_attribute_test.js # test/migrations/032_drop_type_attribute_test.js # test/migrations/034_drop_type_test.js # test/migrations/041_function_test.js # test/migrations/044_trigger_test.js # test/migrations/047_domain_check.js # test/migrations/050_sequence_test.js # test/migrations/052_sequence_alter_test.js # test/migrations/055_operator_test.js # test/migrations/058_policy_test.js # test/migrations/061_column_comment_test.js # test/migrations/073_alter_column_comment_test.js
refactoring;
removing sqlMigratio module;
updating libRunner script; updating migrations; updating runner; updating types;
changing functionality of command 'redo'; updating libRunner script; updating migration script; updating runner script; updating types;
refactoring;
…module; removing unused options from libRuner; updating migration.ts; updating runner.ts; updating types.ts; refactoring;
refactoring;
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.