Commit Graph

10 Commits

Author SHA1 Message Date
ThetaDev
2a8115147a Implemented adding/removing constraints (#55)
* Add CreateConstraint function

* Refactored to recreateTable function

* fix determining constraint name
2021-10-08 17:29:27 +08:00
Jinzhu
250624840b Add stmt.Schema check 2021-07-13 21:07:39 +08:00
Florent Clairambault
459b36b583 Proper use of transaction in the sqlite migrator. (#9)
* Proper use of transaction in the sqlite migrator.

* Second part of the fix
2020-09-15 19:43:26 +08:00
Jinzhu
9cfe3353b1 Fix alter column 2020-09-01 20:52:38 +08:00
Manfred Touron
7ae6e7d479 fix: more explicit error when using sqlite driver with at least one constraint
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
2020-07-15 00:12:33 +02:00
Jinzhu
9cbff050ba Fix HasConstraint checker 2020-06-21 13:49:30 +08:00
Jinzhu
9f8fcade00 Add RunWithoutForeignKey 2020-06-21 10:39:25 +08:00
Jinzhu
ec93d563fe Fix HasColumn, HasIndex check 2020-06-05 17:06:49 +08:00
Jinzhu
558bcfb948 Fix HasColumn, HasIndex check 2020-06-05 17:00:59 +08:00
Jinzhu
284b563f81 Initalize 2020-06-02 09:53:23 +08:00