Skip to content

Expose schema support for the mp_version table in the mp executable #4

Description

@terbooter

Hi. I just started using mp.

I created migration file
D:\Dropbox\MyDropbox\www\lifetest>php c:\xampplite\php\mp -x "mysql:host=localho
st;port=3306;dbname=lifetest;user=lifetest;password=zaqxsw" -n
MP - The PHP Migrator.
Created migration 20110124_153500 at ./migrations/20110124_153500.php.

After that I wrote migration up and down sql code

And finally I want to migrate to HEAD version
D:\Dropbox\MyDropbox\www\lifetest>php c:\xampplite\php\mp -x "mysql:host=localho
st;port=3306;dbname=lifetest;user=lifetest;password=zaqxsw" -m
MP - The PHP Migrator.
Error running migration: Error initializing DB at [create table public.mp_versio
n ( version text );
insert into public.mp_version (version) values (0);]: SQ
LSTATE[42000]: Syntax error or access violation: 1142 CREATE command denied to u
ser 'lifetest'@'localhost' for table 'mp_version'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions