feat: BeforeUpdate
hook supports update using struct field value
#2566
tests.yml
on: pull_request
Matrix: mariadb
Matrix: mysql
Matrix: postgres
Matrix: sqlite
Matrix: sqlserver
Matrix: tidb
Annotations
138 errors and 29 warnings
sqlite (1.20, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
sqlite (1.20, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
sqlite (1.20, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
sqlite (1.20, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
sqlite (1.20, ubuntu-latest)
Process completed with exit code 1.
|
sqlite (1.21, ubuntu-latest)
The job was canceled because "_1_20_ubuntu-latest" failed.
|
sqlite (1.21, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
sqlite (1.21, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
sqlite (1.21, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
sqlite (1.21, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
sqlite (1.21, ubuntu-latest)
The operation was canceled.
|
sqlite (1.22, ubuntu-latest)
The job was canceled because "_1_20_ubuntu-latest" failed.
|
sqlite (1.22, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
sqlite (1.22, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
sqlite (1.22, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
sqlite (1.22, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
sqlite (1.22, ubuntu-latest)
The operation was canceled.
|
mariadb (mariadb:latest, 1.20, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
mariadb (mariadb:latest, 1.20, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
mariadb (mariadb:latest, 1.20, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
mariadb (mariadb:latest, 1.20, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
mariadb (mariadb:latest, 1.20, ubuntu-latest)
Process completed with exit code 1.
|
mariadb (mariadb:latest, 1.21, ubuntu-latest)
The job was canceled because "mariadb_latest_1_20_ubunt" failed.
|
mariadb (mariadb:latest, 1.21, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
mariadb (mariadb:latest, 1.21, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
mariadb (mariadb:latest, 1.21, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
mariadb (mariadb:latest, 1.21, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
mariadb (mariadb:latest, 1.21, ubuntu-latest)
Process completed with exit code 1.
|
tidb (v6.5.0, 1.20, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
tidb (v6.5.0, 1.20, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
tidb (v6.5.0, 1.20, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
tidb (v6.5.0, 1.20, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
tidb (v6.5.0, 1.20, ubuntu-latest)
Process completed with exit code 1.
|
tidb (v6.5.0, 1.22, ubuntu-latest)
The job was canceled because "v6_5_0_1_20_ubuntu-latest" failed.
|
tidb (v6.5.0, 1.22, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
tidb (v6.5.0, 1.22, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
tidb (v6.5.0, 1.22, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
tidb (v6.5.0, 1.22, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
tidb (v6.5.0, 1.22, ubuntu-latest)
Process completed with exit code 1.
|
mariadb (mariadb:latest, 1.22, ubuntu-latest)
The job was canceled because "mariadb_latest_1_20_ubunt" failed.
|
mariadb (mariadb:latest, 1.22, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
mariadb (mariadb:latest, 1.22, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
mariadb (mariadb:latest, 1.22, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
mariadb (mariadb:latest, 1.22, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
mariadb (mariadb:latest, 1.22, ubuntu-latest)
The operation was canceled.
|
tidb (v6.5.0, 1.21, ubuntu-latest)
The job was canceled because "v6_5_0_1_20_ubuntu-latest" failed.
|
tidb (v6.5.0, 1.21, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
tidb (v6.5.0, 1.21, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
tidb (v6.5.0, 1.21, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
tidb (v6.5.0, 1.21, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
tidb (v6.5.0, 1.21, ubuntu-latest)
The operation was canceled.
|
mysql (mysql/mysql-server:latest, 1.22, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
mysql (mysql/mysql-server:latest, 1.22, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
mysql (mysql/mysql-server:latest, 1.22, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
mysql (mysql/mysql-server:latest, 1.22, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
mysql (mysql/mysql-server:latest, 1.22, ubuntu-latest)
Process completed with exit code 1.
|
mysql (mysql:5.7, 1.20, ubuntu-latest)
The job was canceled because "mysql_mysql-server_latest" failed.
|
mysql (mysql:5.7, 1.20, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
mysql (mysql:5.7, 1.20, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
mysql (mysql:5.7, 1.20, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
mysql (mysql:5.7, 1.20, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
mysql (mysql:5.7, 1.20, ubuntu-latest)
Process completed with exit code 1.
|
mysql (mysql:5.7, 1.22, ubuntu-latest)
The job was canceled because "mysql_mysql-server_latest" failed.
|
mysql (mysql:5.7, 1.22, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
mysql (mysql:5.7, 1.22, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
mysql (mysql:5.7, 1.22, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
mysql (mysql:5.7, 1.22, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
mysql (mysql:5.7, 1.22, ubuntu-latest)
Process completed with exit code 1.
|
sqlserver (1.21, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
sqlserver (1.21, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
sqlserver (1.21, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
sqlserver (1.21, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
sqlserver (1.21, ubuntu-latest)
Process completed with exit code 1.
|
mysql (mysql/mysql-server:latest, 1.20, ubuntu-latest)
The job was canceled because "mysql_mysql-server_latest" failed.
|
mysql (mysql/mysql-server:latest, 1.20, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
mysql (mysql/mysql-server:latest, 1.20, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
mysql (mysql/mysql-server:latest, 1.20, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
mysql (mysql/mysql-server:latest, 1.20, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
mysql (mysql/mysql-server:latest, 1.20, ubuntu-latest)
Process completed with exit code 1.
|
mysql (mysql/mysql-server:latest, 1.21, ubuntu-latest)
The job was canceled because "mysql_mysql-server_latest" failed.
|
mysql (mysql/mysql-server:latest, 1.21, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
mysql (mysql/mysql-server:latest, 1.21, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
mysql (mysql/mysql-server:latest, 1.21, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
mysql (mysql/mysql-server:latest, 1.21, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
mysql (mysql/mysql-server:latest, 1.21, ubuntu-latest)
Process completed with exit code 1.
|
sqlserver (1.20, ubuntu-latest)
The job was canceled because "_1_21_ubuntu-latest" failed.
|
sqlserver (1.20, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
sqlserver (1.20, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
sqlserver (1.20, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
sqlserver (1.20, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
sqlserver (1.20, ubuntu-latest)
Process completed with exit code 1.
|
mysql (mysql:5.7, 1.21, ubuntu-latest)
The job was canceled because "mysql_mysql-server_latest" failed.
|
mysql (mysql:5.7, 1.21, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
mysql (mysql:5.7, 1.21, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
mysql (mysql:5.7, 1.21, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
mysql (mysql:5.7, 1.21, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
mysql (mysql:5.7, 1.21, ubuntu-latest)
The operation was canceled.
|
sqlserver (1.22, ubuntu-latest)
The job was canceled because "_1_21_ubuntu-latest" failed.
|
sqlserver (1.22, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
sqlserver (1.22, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
sqlserver (1.22, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
sqlserver (1.22, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
sqlserver (1.22, ubuntu-latest)
Process completed with exit code 1.
|
postgres (postgres:13, 1.20, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
postgres (postgres:13, 1.20, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
postgres (postgres:13, 1.20, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
postgres (postgres:13, 1.20, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
postgres (postgres:13, 1.20, ubuntu-latest)
Process completed with exit code 1.
|
postgres (postgres:13, 1.21, ubuntu-latest)
The job was canceled because "postgres_13_1_20_ubuntu-l" failed.
|
postgres (postgres:13, 1.21, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
postgres (postgres:13, 1.21, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
postgres (postgres:13, 1.21, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
postgres (postgres:13, 1.21, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
postgres (postgres:13, 1.21, ubuntu-latest)
Process completed with exit code 1.
|
postgres (postgres:15, 1.21, ubuntu-latest)
The job was canceled because "postgres_13_1_20_ubuntu-l" failed.
|
postgres (postgres:15, 1.21, ubuntu-latest)
The operation was canceled.
|
postgres (postgres:latest, 1.22, ubuntu-latest)
The job was canceled because "postgres_13_1_20_ubuntu-l" failed.
|
postgres (postgres:latest, 1.22, ubuntu-latest)
The operation was canceled.
|
postgres (postgres:14, 1.20, ubuntu-latest)
The job was canceled because "postgres_13_1_20_ubuntu-l" failed.
|
postgres (postgres:14, 1.20, ubuntu-latest)
The operation was canceled.
|
postgres (postgres:15, 1.20, ubuntu-latest)
The job was canceled because "postgres_13_1_20_ubuntu-l" failed.
|
postgres (postgres:15, 1.20, ubuntu-latest)
A task was canceled.
|
postgres (postgres:14, 1.22, ubuntu-latest)
The job was canceled because "postgres_13_1_20_ubuntu-l" failed.
|
postgres (postgres:14, 1.22, ubuntu-latest)
A task was canceled.
|
postgres (postgres:15, 1.22, ubuntu-latest)
The job was canceled because "postgres_13_1_20_ubuntu-l" failed.
|
postgres (postgres:15, 1.22, ubuntu-latest)
A task was canceled.
|
postgres (postgres:latest, 1.20, ubuntu-latest)
The job was canceled because "postgres_13_1_20_ubuntu-l" failed.
|
postgres (postgres:latest, 1.20, ubuntu-latest)
The operation was canceled.
|
postgres (postgres:latest, 1.21, ubuntu-latest)
The job was canceled because "postgres_13_1_20_ubuntu-l" failed.
|
postgres (postgres:latest, 1.21, ubuntu-latest)
The operation was canceled.
|
postgres (postgres:14, 1.21, ubuntu-latest)
The job was canceled because "postgres_13_1_20_ubuntu-l" failed.
|
postgres (postgres:14, 1.21, ubuntu-latest)
The operation was canceled.
|
postgres (postgres:13, 1.22, ubuntu-latest)
The job was canceled because "postgres_13_1_20_ubuntu-l" failed.
|
postgres (postgres:13, 1.22, ubuntu-latest):
schema/field_test.go#L21
unknown field ID in struct literal of type gorm.Model
|
postgres (postgres:13, 1.22, ubuntu-latest):
schema/field_test.go#L37
user.ID undefined (type tests.User has no field or method ID)
|
postgres (postgres:13, 1.22, ubuntu-latest):
schema/field_test.go#L100
unknown field ID in struct literal of type gorm.Model
|
postgres (postgres:13, 1.22, ubuntu-latest):
schema/field_test.go#L115
user.ID undefined (type User has no field or method ID)
|
postgres (postgres:13, 1.22, ubuntu-latest)
The operation was canceled.
|
sqlite (1.20, ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
sqlite (1.20, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
sqlite (1.21, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
sqlite (1.22, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
mariadb (mariadb:latest, 1.20, ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
mariadb (mariadb:latest, 1.20, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
mariadb (mariadb:latest, 1.21, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
tidb (v6.5.0, 1.20, ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
tidb (v6.5.0, 1.20, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
tidb (v6.5.0, 1.22, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
mariadb (mariadb:latest, 1.22, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
tidb (v6.5.0, 1.21, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
mysql (mysql/mysql-server:latest, 1.22, ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
mysql (mysql/mysql-server:latest, 1.22, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
mysql (mysql:5.7, 1.20, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
mysql (mysql:5.7, 1.22, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
sqlserver (1.21, ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
sqlserver (1.21, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
mysql (mysql/mysql-server:latest, 1.20, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
mysql (mysql/mysql-server:latest, 1.21, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
sqlserver (1.20, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
mysql (mysql:5.7, 1.21, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
sqlserver (1.22, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
postgres (postgres:13, 1.20, ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
postgres (postgres:13, 1.20, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
postgres (postgres:13, 1.21, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
postgres (postgres:14, 1.20, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
postgres (postgres:14, 1.21, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|
postgres (postgres:13, 1.22, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gorm/gorm. Supported file pattern: go.sum
|