Class | Description |
---|---|
KittyDevDropCreateMigrator |
Class for processing migrations from different versions of schema to current without full sequences.
|
KittyFileMigrationFactory |
Migrations factory (from filesystem)
Created by akaish on 05.03.18.
|
KittyMigration |
Migration class
Created by akaish on 05.03.18.
|
KittyMigrationFactory |
Abstract class for migration factories
Created by akaish on 05.03.18.
|
KittyORMVersionFileDumpMigrator |
File dump migrator implementation
This migrator looks for all files in specified directory and creates KittyMigration from
them if possible (files are files with name in x-x-x-x.sql pattern, where 'x' are positive integers that are ranges, e.g. minLower-minUpper-maxLower-maxUpper ranges of current migrations scripts) Created by akaish on 05.03.18. |
KittyORMVersionMigrator |
Abstract databaseClass versions migrator
Created by akaish on 05.03.18.
|
KittySimpleMigrator |
Migrator that returns script automatically generated with
KittySimpleMigrationScriptGenerator
Be aware to use this migrator with database schema that differs with old version in things related with constraints Main idea is that this migrator would do following things: 1) Gets list of existing tables and indexes 2) Generates diff collection without constraint checks on tables and table columns 3) If some of tables in new version would have less fields than old version, old version table would be renamed, new version of table would be created and all values except redundant column values would be copied to new location 4) Is some of tables in new version would have more fields, than would be generated alter table add column query list 5) If new version table has same amount of same named columns as in old version table, nothing would be done 6) If new version tableIndex not present in old schema, it would be created 7) etc Just check KittySimpleMigrationScriptGenerator for more info
Created by akaish on 19.10.18. |