Skip to content

Latest commit

 

History

History
619 lines (339 loc) · 17.4 KB

CHANGELOG.md

File metadata and controls

619 lines (339 loc) · 17.4 KB

Change Log

Added

  • Add ifNotExists to addColumns #427

Added

  • Generated option for column #426
  • Testing node version 6,8,10,12, postgres 9,10,11, cockroach 1,2 #423

Fixed

  • Do not use alias function name #414

Added

  • Returning list of run migrations #411

Added

  • Allow user to specify multiple check constraints when creating table #408
  • Allow user to pass db client to migration runner #407

Fixed

  • Fix empty migration files #400

Added

  • Adding LIKE options when creating table #394

Added

  • Infering migration language #391

Fixed

  • Exporting PgType #368

Fixed

  • Pass all params to pg query #361

Changed

  • Add ForeignKey Reference Action #357

Changed

  • Better migration name fix #353
  • Fix migration name substitution #348

Added

  • Shorthand can reference other shorthands #346

Added

  • Ability to mark migrations as run #324

Fixed

  • Fix dropping index in another schema #322

Changed

  • Using default libpq env vars #319

Changed

  • Do not construct connection string #316

Change Log

Changed

  • Removing default value for parallel clause #308

Fixed

  • Fix JSON quotes for script #307

Added

  • Ignoring dotfiles by default #305
  • Encoding special characters in db config #304

Added

  • Renaming of enum values #293

Fixed

  • Workaround for transpilers #299
  • Interface for references #297

Changed

  • Updates to installation and licence #298
  • Update readme #296

Fixed

  • Ability to name references constraint #290
  • Alter column comment #292

Changed

  • Update dependencies to enable Greenkeeper #278
  • Update CI config #281
  • Using async/await #282
  • Using 'function' keyword #283
  • Using code directly for node >= 8 #288
  • Added cockroach v2 to tests #289
  • Using tests without babel #291

Fixed

  • Respect configured logger #277

Fixed

  • Added id column to order by clause of select migrations #272

Added

  • Adding primary key on pgmigrations table #274

Fixed

  • opclass parens typo #270

Changed

  • Constraint name is optional (for backward compatibility) #268
  • Updated node and service versions #269

!!! Minimal supported node version is now 6 !!!

Fixed

  • Promisifying client.connect #265

Fixed

  • Fix type name issue when the type is not in the default schema #264

Added

  • Add support for opclass option in createIndex #259
  • Ability to specify extension schema #260

Fixed

  • Using dollar-quoted strings in comments #255

Fixed

  • Fixing optional options in create and drop statements #250

Added

  • Handling SQL files #246

Fixed

  • Fix comment not being optional #244
  • Fix behavior when singleTransaction is not set #245

Changed

  • Implement failsafe locking #239
  • Updated docs about locking #240

Added

  • Add log option to runner.js #238
  • Structuring docs #237
  • Prettier formatting #236
  • Displaying function name on infer failure #235
  • Materialized views handling #234
  • Handling Views #233
  • Cockroach test #231
  • Prettier #230

Fixed

  • Fixing setting comments on columns #228

Fixed

  • Fixing setting comments on columns #228

Breaking changes

  • Single transaction as default #205
  • Versioning type shorthands #190 (type shorthands were moved from global config to migrations scripts)
  • Using camel case in API #189
  • Removed pg-migrate script (use node-pg-migrate)

Added

  • Running test migrations on CircleCI #221

Fixed

  • Fix runner for zero migrations #224

Fixed

  • Fixing altering role #222
  • Fixes from 3.0 #223

Added

  • Support for policies #219

Fixed

  • Role inherit fix #218

Fixed

  • (No)Transaction handling #213
  • Parens around INHERITS clause #214

Added

Fixed

  • Fix auto create schema #206

Added

  • Add --single-transaction option #204

Fixed

  • Correct handling of multiline constraints #202

Changed

  • Updating deps, removing vulnerablity status for peer and optional dependencies #199
  • Removing regex #198
  • Adding ability to specify database name with 'database' option #197

Fixed

  • Role encrypted default #196
  • Running queries in order #195

Fixed

  • Passing props #194

Added

  • Auto create configured schemas if they don't exist #192
  • Add ifNotExists option to create extension #188
  • Programmatic API docs #187

Added

  • Table and column comments #183

Added

  • migration-file-language can be set in config file #180
  • Treat number argument to up/down migration as timestamp #179

Fixed

  • Fixing addConstraint method with object expression #176

Added

  • Add no lock option #171
  • Updated docs #174

Changed

  • Remove old version number from index.d.ts #173
  • Remove default match in column reference #172
  • Refactor code to use camel casing #167

Added

  • Added typescript migration template #165
  • Updated type definitions to accept db client config #166

Fixed

  • Deleted duplicate declaration #164

Changed

  • Updated dependencies #158

Fixed

  • Typescript definition fixes #162

Added

  • Uniting drop statements #154
  • Handling domains #155
  • Operator operations #156
  • Sequences operations #157

Fixed

  • Handle rejections in migration actions #148

Added

Added

  • Deferrable column constraints #139
  • Possibility to use function in multi-column index #140

Changed

  • Changed all references from pg-migrate to node-pg-migrate #141

    !!! Breaking change from version 3 !!! (now with warning)

Fixed

  • Cannot use embedded value in config #137
  • add space before USING keyword #138

Fixed

  • addTypeValue's after option is using BEFORE instead of AFTER #133

Added

  • Ability to specify files to ignore in migrations directory #131

Fixed

  • Dollar quoted string constants #127
  • Table unique constraint can be array of arrays #126

Changed

  • If user disables migration, return Error instead of string #125
  • Circle CI integration #124
  • Moved to Salsita organization #122

Fixed

  • Fixed SQL for dropping multiple columns #120

Added

  • Schemas operations #119

Fixed

  • Fixed invalid SQL for table level foreign key #118

Added

  • Ability to specify constraints on table level #114

Added

  • Alter type functions #111
  • redo command #112

Fixed

  • Fix automatic reversal of addColumns #110

Fixed

  • Fixing referencing column #107

Changed

  • Formatting changes, added licence #108

Added

  • Trigger operations #104

Fixed

  • Support object with schema and table name in more places #105

Added

  • Function operations #103

Added

  • Support for pg >=4.3.0 <8.0.0
  • Interpret only files as migrations in migration directory #101

Added

  • USING clause in alter column #99
  • Role operations #100

Changed

  • Do not check file extension of migration file #93

Added

  • JSON config and type shorthands see #91

Fixed

  • Syntax error in node 4

Added

  • Better error logging #86
  • Locking migrations #88
  • Updated docs #89

Fixed

  • Down migration when down method is inferred #84

Added

  • Enable string functions and arrays as default column values #82

Rewritten using es6 (transpiled via babel) and Promises.

Breaking Changes

  • supports only node >= 4
  • check-order flag now defaults to true (to switch it off supply --no-check-order on command line)
  • dotenv package is optionalDependency
  • s option is now alias for schema which sets schema for migrations SQL, if you only need to change schema of migrations table use --migrations-schema

Added

  • config package as optionalDependency
  • Migration can return Promise