Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Migrations Schema Mods #180

Closed
ghost opened this issue Aug 27, 2011 · 13 comments
Closed

Migrations Schema Mods #180

ghost opened this issue Aug 27, 2011 · 13 comments
Milestone

Comments

@ghost
Copy link

ghost commented Aug 27, 2011

Change the Migrations schema_version table so that it uses a table record rather than a table column per migration type.

@bencevans
Copy link
Contributor

And is it worth removing the row/entry if the version equals 0?

@ghost
Copy link
Author

ghost commented Aug 28, 2011

Yeah that's a good idea.

@Icehawg
Copy link
Contributor

Icehawg commented Sep 1, 2011

Yes. This.

@ci-bonfire
Copy link

Yes. Sounds good.

@ghost
Copy link
Author

ghost commented Sep 11, 2011

Moving this to 0.3

@ghost
Copy link
Author

ghost commented Nov 9, 2011

I'll take this on.

I've most of it worked out now, just need to work on the migration file to move the data into the new structure.

@ghost ghost closed this as completed in 9bd89bf Nov 19, 2011
@ghost
Copy link
Author

ghost commented Nov 19, 2011

Hey all - this is a big change - I've merged it into the develop branch so if you could test it would be great. This affects the Module Builder too but I think I've covered it.

Thanks

@przemeq
Copy link

przemeq commented Nov 19, 2011

I get an error when I try to install Bonfire now (version ci-bonfire-Bonfire-v0.2.1-13-g9bd89bf)

Fatal error: Call to a member function add_key() on a non-object in /blab/bonfire/application/core_modules/migrations/libraries/Migrations.php on line 151

@przemeq
Copy link

przemeq commented Nov 19, 2011

It is new fresh installation

ghost pushed a commit that referenced this issue Nov 20, 2011
@ghost
Copy link
Author

ghost commented Nov 20, 2011

@przemeq Thanks for reporting and sorry for the mistake. It should be resolved now.

@przemeq
Copy link

przemeq commented Nov 20, 2011

@seandowney

now when I try to install ci-bonfire-Bonfire-v0.2.1-14-gb176449 I get:

A Database Error Occurred
Error Number: 1054
Unknown column 'core' in field list
INSERT INTO bf_schema_version VALUES ('type', core);
Filename: /blab/db/migrations/core/012_Migration_schema_change.php
Line Number: 44

ghost pushed a commit that referenced this issue Nov 20, 2011
… the Migrations library creates the migration table schema in the new structure so there is no need for this migration. This migration is only for existing installations.
@ghost
Copy link
Author

ghost commented Nov 20, 2011

@przemeq Thanks again - someone had reported this on the forums also. This is resolved now.

The 012 migration file was only required for existing installations and not for during the installation process.

Sorry about that.

@przemeq
Copy link

przemeq commented Nov 20, 2011

you are welcome ;)

ghost pushed a commit that referenced this issue Nov 21, 2011
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants