Skip to content
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
wants to merge 188 commits into
base: master
Choose a base branch
from
Open

Modify runner #1

wants to merge 188 commits into from

Conversation

valerii-kovalov
Copy link

No description provided.

craigglennie and others added 30 commits November 12, 2019 08:51
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
renovate-bot and others added 12 commits July 13, 2020 01:24
# 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
@valerii-kovalov valerii-kovalov marked this pull request as draft August 5, 2020 16:00
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;
…module;

removing unused options from libRuner;
updating migration.ts;
updating runner.ts;
updating types.ts;
refactoring;
@valerii-kovalov valerii-kovalov marked this pull request as ready for review August 28, 2020 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.