Comments (11)
Please try the new version of this extension and let me know if everything is OK.
Unfortunately all the "create" namespaced migrations in your db must be removed and regenerated (or renamed to fit Yii 2 schema 'm' . gmdate('ymd_His') . '_the_rest_of_the_name'
, inside class and migration
db table).
from yii2-migration.
More information: currently when add version
in migration
table it use short name of class (not full namespace)
from yii2-migration.
I think this is expected behavior now but maybe some workaround can be done.
Could you set migrationNamespaces
(--migrationNamespaces, -N) with namespaced version of folder name with the classic migrations? Depending on where you keep them it's i.e. console\migrations
or similar.
from yii2-migration.
I had add migrationNamespaces
in config file
My app config:
'migrate' => [
'class' => 'bizley\migration\controllers\MigrationController',
'migrationTable' => 'm2',
'migrationNamespaces' => [
'common\migrations',
'frontend\migrations'
]
],
from yii2-migration.
Well, does it work?
from yii2-migration.
It doesn't work :( missing namespace in version
problem maybe when generate migration is not prepend namespace? MigrationController L258
from yii2-migration.
There is bug when extracting data from classic migrations mixed with namespaced. Generally you shoud not mix both but I can add process for proper handling.
One thing bothers me here. Could you paste here the content of your migration
table?
from yii2-migration.
Of course!
from yii2-migration.
It play well now! Thank you for help 🥇 .
I have a question why we don't skip a migration table
in list? Currently it create a migration for migration table
and we usually remove it before use.
from yii2-migration.
Great!
As for the migration
table - it will be ignored in 2.2.1.
from yii2-migration.
Migration table is now automatically ignored with version 2.3.0.
from yii2-migration.
Related Issues (20)
- Dependabot can't resolve your PHP dependency files
- [Bug] update after renameTable() HOT 1
- [Bug] Missing compatibility with MySQL 8
- [Bug] update of a migration does not work without Yii autoloader HOT 4
- [Bug] > SQLSTATE[08004] [1040] Too many connections HOT 1
- [Bug] Asterisk not working with migration/create HOT 5
- [Bug] Column data must be provided as an instance of yii\db\ColumnSchemaBuilder. HOT 10
- get all data from table HOT 1
- [Bug] Primary key not included as index in StructureBuilder::addHiddenIndexes() for MySQL dbs
- [Feature] Different timestamp for migration file names as Yii operates on time and breaks the migration processes HOT 3
- [Bug] Problem with parsing ENUMS in migrations
- [Q] Unable to get Migration Working Correctly HOT 2
- Unclear of the cause of migration/update causing: [23000]: Integrity constraint violation HOT 7
- Migration/Update drops column instead of using renameColumn command HOT 1
- migration/update produces: Column data must be provided as an instance of yii\db\ColumnSchemaBuilder HOT 1
- [Bug] Primary Key Int Length setting to 10 instead of 11 HOT 3
- [Bug] Dropping table with foreign key on update
- [Bug] Setting default values using expressions fails HOT 11
- [Bug] Invalid path alias: @bizley/migration/views/migration.php HOT 4
- [Bug] Multiple definitions exist for class 'Migration' HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-migration.