:)
i think it's good enough currently to keep this like it is. later on it
should simply be refactored to the adapter.


On Sun, Jan 12, 2014 at 10:18 AM, itayadler <notifications@github.com>wrote:

> In lib/sails-migrations/database_tasks.coffee:
>
> >
> >    @create: (adapter, cb)->
> >      switch adapter.identity
> >        when 'sails-mysql'
> > -        exec("mysql -h #{adapter.config.host} -u #{adapter.config.user} -p#{adapter.config.password} -e 'CREATE DATABASE #{adapter.config.database}'", (err, stdout, stdin)->
>
> (Code masterbation warn)
> We could have a prototype createDatabase / dropDatabase.. futureMethods
> and each database flavor will
> implement the functions.. but as u said the adapter should actually take
> care of it
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/BlueHotDog/sails-migrations/pull/3/files#r8813130>
> .
>



-- 
Danni Friedland
+972-54-7764415