migrations
migrations copied to clipboard
Automatic migration generation
Draft version of migration builder. Need add support custom types for all database, because current version only for postgresql and only for enums.
Inspired by https://github.com/laravel/framework/pull/36906/files
Now I can't create custom fields: ``` $this->table('table')->addColumn('location', 'point'); ``` I got error `Undefined abstract/virtual type 'point'` in `AbstractColumn.php line 449` Add the ability to create custom field types.
I've switched from mysql 5.7 to 8 version and there is an error. While mysql 5.7 has no error. I'm trying to migrate generated migration. `mysql Ver 8.0.23-0ubuntu0.20.04.1 for Linux...
Database: > Postgres 9.1 Code for migration: ``` ->addColumn('status', 'enum', [ 'nullable' => false, 'default' => 'active', 'values' => [ 'active', 'inactive', ... ] ]) ``` Actual result: A table...
When changing PK declaration from ```php @Column(type=primary) ``` to ```php @Column(type=bigint, primary=true) ``` tests fail with next error (reproduced on PostgreSQL) ``` Cycle\Migrations\Tests\Driver\Postgres\ReflectTest::testAlter Column primary_to_primary_bigints.id has been changed Failed asserting...
Change precondition typehints from `Cycle` to `Spiral` namespace.
PHP version: 8.0 Package version: v1.0.10 How to reproduce: 1. User entity: ```php
In current migrations implementation it is possible case when migration fails after implementing some changes. If such migration fails you must rollback it manually from db. I know about the...