dependabot[bot]
2051f80732
build(deps): bump actions/cache from 3 to 4
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
v1.11.0
2024-03-14 09:49:28 +03:00
dependabot[bot]
1b64a747e9
build(deps): bump gorm.io/gorm from 1.25.5 to 1.25.7
...
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm ) from 1.25.5 to 1.25.7.
- [Release notes](https://github.com/go-gorm/gorm/releases )
- [Commits](https://github.com/go-gorm/gorm/compare/v1.25.5...v1.25.7 )
---
updated-dependencies:
- dependency-name: gorm.io/gorm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-14 09:49:17 +03:00
glebarez
a871805cb6
Merge upstream
2024-03-14 09:36:01 +03:00
Jinzhu
7544227247
Update github action
2024-03-09 17:30:33 +08:00
Nuno Cruces
00ab012234
fix: double quoted string literals in migrator ( #183 )
2024-03-09 17:29:55 +08:00
black-06
87158cf45d
refactor: distinguish between Unique and UniqueIndex ( #156 )
...
* refactor: distinguish between Unique and UniqueIndex
* take care of unique created by old version
* update gorm to master latest (for https://github.com/go-gorm/gorm/pull/6386 )
* merge
2024-02-06 11:39:22 +08:00
dependabot[bot]
084ab1e90b
build(deps): bump actions/upload-artifact from 3 to 4
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-25 23:09:58 +03:00
dependabot[bot]
0cc98c44a4
build(deps): bump dawidd6/action-download-artifact from 2 to 3
...
Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact ) from 2 to 3.
- [Release notes](https://github.com/dawidd6/action-download-artifact/releases )
- [Commits](https://github.com/dawidd6/action-download-artifact/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: dawidd6/action-download-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-14 14:21:56 +03:00
dependabot[bot]
1d689f0c63
build(deps): bump actions/setup-go from 4 to 5
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-12 00:34:11 +03:00
yx179971
869dd96541
fix ddl from exists table ( #172 )
2023-12-06 22:51:33 +03:00
yx179971
e64f7a5816
fix ddl from exists table ( #172 )
2023-11-22 11:14:29 +08:00
dependabot[bot]
fb2dfbf6b7
build(deps): bump schneegans/dynamic-badges-action from 1.6.0 to 1.7.0
...
Bumps [schneegans/dynamic-badges-action](https://github.com/schneegans/dynamic-badges-action ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/schneegans/dynamic-badges-action/releases )
- [Changelog](https://github.com/Schneegans/dynamic-badges-action/blob/master/changelog.md )
- [Commits](https://github.com/schneegans/dynamic-badges-action/compare/v1.6.0...v1.7.0 )
---
updated-dependencies:
- dependency-name: schneegans/dynamic-badges-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
v1.10.0
2023-10-27 16:24:06 +03:00
dependabot[bot]
df6ab17fa6
build(deps): bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-26 22:18:27 +03:00
dependabot[bot]
18bab9ba89
build(deps): bump gorm.io/gorm from 1.25.2 to 1.25.5
...
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm ) from 1.25.2 to 1.25.5.
- [Release notes](https://github.com/go-gorm/gorm/releases )
- [Commits](https://github.com/go-gorm/gorm/compare/v1.25.2...v1.25.5 )
---
updated-dependencies:
- dependency-name: gorm.io/gorm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-26 22:17:44 +03:00
glebarez
5a36d7ede3
translate SQLITE_CONSTRAINT_FOREIGNKEY error
2023-10-26 17:40:02 +03:00
gleb
851a2178d8
Merge branch 'go-gorm:master' into master
2023-10-14 21:05:18 +03:00
ChrisPortman
74475fc966
Issue #158 SQLite fields are nullible unless NOT NULL
( #159 )
...
This change sets the default value of ColumnType.Nullable() to true. If
the column is explicitly `MOT NULL` then it will be set false.
This is consistent with the SQLite documentation:
https://www.sqlitetutorial.net/sqlite-not-null-constraint/
Co-authored-by: Chris Carter <chris.carter@spinlocksecurity.com >
2023-10-08 10:52:14 +08:00
Franco Liberali
8172ddb512
add from as valid clause for update ( #166 )
2023-10-08 10:47:42 +08:00
Samuel N Cui
139bd307e5
fix: AUTOINCREMENT flag cannot apply with PRIMARY KEY ( #167 )
...
* fix: AUTOINCREMENT flag cannot apply with PRIMARY KEY
* fix: migrator use ddl parser instead of regexp
2023-10-08 10:47:18 +08:00
Jinzhu
af1b82215d
Fix QuoteTo
2023-08-16 17:47:56 +08:00
glebarez
b1197c8c14
add Go 1.20 to tests workflow
v1.9.0
2023-07-09 12:28:04 +03:00
glebarez
c393d6e237
Revert "feat: error translator support added ( #136 )"
...
This reverts commit f78eb0fe4b
.
2023-07-09 12:22:26 +03:00
glebarez
205217f053
Merge branch 'orig'
2023-07-09 12:19:37 +03:00
dependabot[bot]
963e2ccd32
Bump gorm.io/gorm from 1.25.0 to 1.25.2
...
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm ) from 1.25.0 to 1.25.2.
- [Release notes](https://github.com/go-gorm/gorm/releases )
- [Commits](https://github.com/go-gorm/gorm/compare/v1.25.0...v1.25.2 )
---
updated-dependencies:
- dependency-name: gorm.io/gorm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-08 09:46:10 +03:00
dependabot[bot]
614f8e4cd7
Bump github.com/glebarez/go-sqlite from 1.21.1 to 1.21.2
...
Bumps [github.com/glebarez/go-sqlite](https://github.com/glebarez/go-sqlite ) from 1.21.1 to 1.21.2.
- [Release notes](https://github.com/glebarez/go-sqlite/releases )
- [Commits](https://github.com/glebarez/go-sqlite/compare/v1.21.1...v1.21.2 )
---
updated-dependencies:
- dependency-name: github.com/glebarez/go-sqlite
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-08 00:30:54 +03:00
Christoph Heidenreich
be4a7dd6a9
Feature: Error translator for Dialector
2023-06-23 11:12:24 +03:00
Jeff Ortel
397ec6fa8c
Fix columnType.Unique() returns true for non-unique index DDL. ( #154 )
...
Signed-off-by: Jeff Ortel <jortel@redhat.com >
2023-06-09 10:20:12 +08:00
Saeid
cf6cd11e94
fix: ErrForeignKeyViolated error constant ( #155 )
...
* fix: ErrForeignKeyViolated error constant
* refactor: added error codes reference
---------
Co-authored-by: Saeid Saeidee <s.saeidee@sensysgatso.com >
2023-06-09 10:19:25 +08:00
Fabio Bonelli
2a60d4fe20
fix: translate SQLITE_CONSTRAINT_PRIMARYKEY to ErrDuplicatedKey ( #152 )
...
Translate the SQLITE_CONSTRAINT_PRIMARYKEY error code to
ErrDuplicatedKey as well for consistency.
2023-06-09 10:18:50 +08:00
black-06
9ac07d2974
fix: RenameIndex should drop old index ( #151 )
2023-06-07 15:07:57 +08:00
Saeid
cb7f946bd6
feat: foreign key violatation error ( #150 )
...
Co-authored-by: Saeid Saeidee <s.saeidee@sensysgatso.com >
Co-authored-by: Jinzhu <wosmvp@gmail.com >
2023-06-07 15:06:51 +08:00
dependabot[bot]
86ba6431a3
Bump github.com/mattn/go-sqlite3 from 1.14.16 to 1.14.17 ( #153 )
...
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3 ) from 1.14.16 to 1.14.17.
- [Release notes](https://github.com/mattn/go-sqlite3/releases )
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.16...v1.14.17 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-07 15:05:48 +08:00
guangwu
32a05460a8
code optimization and add ignore file ( #149 )
2023-05-28 15:20:29 +08:00
Kenny Leung
0d652e16cd
update gorm to 1.25 ( #145 )
...
Signed-off-by: Kenny Leung <kleung@chainguard.dev >
2023-05-19 18:48:58 +08:00
black-06
96a6beea7a
fix: migrator run with nil schema ( #147 )
2023-05-19 18:48:11 +08:00
Rico
5acf810258
Fix two regexes related to SQL create statement parsing ( #140 )
...
* fix: use \s in tableRegexp to match multiline create statements
* fix: improve tableReg regex to correctly match table name
* tests: add test cases for different spacing cases
2023-04-21 22:26:43 +08:00
Saeid Kanishka
3aa841daf2
fix: dependency issue with go-sqlite3 package ( #143 )
...
* fix: dependency issue with go-sqlite3 package
* doc: documentation has been added
---------
Co-authored-by: Saeid Saeidee <s.saeidee@sensysgatso.com >
2023-04-21 22:24:44 +08:00
dependabot[bot]
1accfe103b
Bump gorm.io/gorm from 1.24.6 to 1.25.0
...
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm ) from 1.24.6 to 1.25.0.
- [Release notes](https://github.com/go-gorm/gorm/releases )
- [Commits](https://github.com/go-gorm/gorm/compare/v1.24.6...v1.25.0 )
---
updated-dependencies:
- dependency-name: gorm.io/gorm
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-17 14:47:40 +03:00
black-06
cb2c532328
distinguish between schema.Time and tag time ( #133 )
...
fix https://github.com/go-gorm/gorm/issues/6033
2023-04-11 11:24:11 +08:00
black-06
07da3b307c
fix parse unique index ( #138 )
2023-04-11 11:22:16 +08:00
dependabot[bot]
7d979e17fc
Bump github.com/glebarez/go-sqlite from 1.21.0 to 1.21.1
...
Bumps [github.com/glebarez/go-sqlite](https://github.com/glebarez/go-sqlite ) from 1.21.0 to 1.21.1.
- [Release notes](https://github.com/glebarez/go-sqlite/releases )
- [Commits](https://github.com/glebarez/go-sqlite/compare/v1.21.0...v1.21.1 )
---
updated-dependencies:
- dependency-name: github.com/glebarez/go-sqlite
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
v1.8.0
2023-04-09 18:48:42 +07:00
dependabot[bot]
86c053e8c9
Bump gorm.io/gorm from 1.24.5 to 1.24.6
...
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm ) from 1.24.5 to 1.24.6.
- [Release notes](https://github.com/go-gorm/gorm/releases )
- [Commits](https://github.com/go-gorm/gorm/compare/v1.24.5...v1.24.6 )
---
updated-dependencies:
- dependency-name: gorm.io/gorm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-06 21:27:19 +07:00
dependabot[bot]
2420c2f47a
Bump actions/setup-go from 3 to 4
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-29 21:04:23 +07:00
dependabot[bot]
502ed63881
Bump actions/setup-go from 3 to 4 ( #137 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-23 10:47:34 +08:00
Saeid Kanishka
f78eb0fe4b
feat: error translator support added ( #136 )
...
* feat: error translator support added
* refactor: removed redundent error deserialization
---------
Co-authored-by: Saeid Saeidee <s.saeidee@sensysgatso.com >
2023-03-09 10:07:02 +08:00
dependabot[bot]
ea3aa227bb
Bump github.com/glebarez/go-sqlite from 1.20.3 to 1.21.0
...
Bumps [github.com/glebarez/go-sqlite](https://github.com/glebarez/go-sqlite ) from 1.20.3 to 1.21.0.
- [Release notes](https://github.com/glebarez/go-sqlite/releases )
- [Commits](https://github.com/glebarez/go-sqlite/compare/v1.20.3...v1.21.0 )
---
updated-dependencies:
- dependency-name: github.com/glebarez/go-sqlite
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-06 15:02:39 +07:00
gleb
e3d312c3a9
Merge pull request #80 from glebarez/dependabot/go_modules/gorm.io/gorm-1.24.5
v1.7.0
2023-02-08 21:22:24 +07:00
dependabot[bot]
6855a9b757
Bump gorm.io/gorm from 1.24.3 to 1.24.5
...
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm ) from 1.24.3 to 1.24.5.
- [Release notes](https://github.com/go-gorm/gorm/releases )
- [Commits](https://github.com/go-gorm/gorm/compare/v1.24.3...v1.24.5 )
---
updated-dependencies:
- dependency-name: gorm.io/gorm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-03 23:02:50 +00:00
gleb
24c3e37a6c
Merge pull request #76 from glebarez/dependabot/go_modules/gorm.io/gorm-1.24.3
...
Bump gorm.io/gorm from 1.24.2 to 1.24.3
2023-02-01 14:08:07 +07:00
dependabot[bot]
d7207e7abf
Bump gorm.io/gorm from 1.24.2 to 1.24.3
...
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm ) from 1.24.2 to 1.24.3.
- [Release notes](https://github.com/go-gorm/gorm/releases )
- [Commits](https://github.com/go-gorm/gorm/compare/v1.24.2...v1.24.3 )
---
updated-dependencies:
- dependency-name: gorm.io/gorm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-01 06:17:17 +00:00