Commit Graph

109 Commits

Author SHA1 Message Date
dgsan ac8f882175 This adds support for indexes to automigrate() and adds a check for the indexes existence to the migration.coffee 'should run migration' test.
All unit tests continue to pass. The code snippets for adding indexes are the declarative versions of the methods used in alterTable(), so the indexes should be consistant with previous declarations/additions.
Should resolve bug #5.
As a side node, also removed the 'UNIQUE' clause from the `id` declaration as it is redundant with the 'PRIMARY KEY' declaration so far as I'm aware and results in what seems to be a second index getting maintained for no reason. (If I'm wrong about this I'd be intrested in the explanation. MySQL does have a lot of oddities.)
2013-02-14 09:37:32 -07:00
Alex Yaroshevich 5a7a30acdd Fixup mistyped regexp
There is no «Unknown database 'dbname'» but «ER_BAD_DB_ERROR: Unknown database 'dbname'»
2013-02-04 06:03:46 +04:00
Anatoliy Chakkaev 035a8e8bac Merge branch 'master' of github.com:1602/jugglingdb-mysql 2013-01-30 22:17:12 +07:00
Anatoliy Chakkaev 718b7fd320 Specify adapter name 2013-01-30 22:15:32 +07:00
Anatoliy Chakkaev 65a0baa633 Listen for error on connection, close #4 2013-01-30 22:15:18 +07:00
Anatoliy Chakkaev 1c8194a7ce Merge pull request #2 from sdrdis/master
Added support for include key
2012-12-16 16:39:19 -08:00
Sébastien Drouyer 7a69062f47 added support for include key 2012-12-16 18:57:39 +01:00
Sascha Gehlich d433ba7efe add additional Point type to the schema 2012-12-16 14:27:30 +01:00
Anatoliy Chakkaev 2eed9a6e89 Init 2012-12-14 18:01:44 +04:00