feat(pkg): update package description for clarity and consistency
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
pkgname=relspec
|
pkgname=relspec
|
||||||
pkgver=1.0.43
|
pkgver=1.0.43
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Database schema conversion and analysis tool"
|
pkgdesc="RelSpec is a comprehensive database relations management tool that reads, transforms, and writes database table specifications across multiple formats and ORMs."
|
||||||
arch=('x86_64' 'aarch64')
|
arch=('x86_64' 'aarch64')
|
||||||
url="https://git.warky.dev/wdevs/relspecgo"
|
url="https://git.warky.dev/wdevs/relspecgo"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Name: relspec
|
Name: relspec
|
||||||
Version: 1.0.43
|
Version: 1.0.43
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Database schema conversion and analysis tool
|
Summary: RelSpec is a comprehensive database relations management tool that reads, transforms, and writes database table specifications across multiple formats and ORMs.
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://git.warky.dev/wdevs/relspecgo
|
URL: https://git.warky.dev/wdevs/relspecgo
|
||||||
|
|||||||
@@ -832,7 +832,11 @@ func (r *Reader) parseRef(refStr string) *models.Constraint {
|
|||||||
for _, action := range actionList {
|
for _, action := range actionList {
|
||||||
action = strings.TrimSpace(action)
|
action = strings.TrimSpace(action)
|
||||||
|
|
||||||
if strings.HasPrefix(action, "ondelete:") {
|
if strings.HasPrefix(action, "delete:") {
|
||||||
|
constraint.OnDelete = strings.TrimSpace(strings.TrimPrefix(action, "delete:"))
|
||||||
|
} else if strings.HasPrefix(action, "update:") {
|
||||||
|
constraint.OnUpdate = strings.TrimSpace(strings.TrimPrefix(action, "update:"))
|
||||||
|
} else if strings.HasPrefix(action, "ondelete:") {
|
||||||
constraint.OnDelete = strings.TrimSpace(strings.TrimPrefix(action, "ondelete:"))
|
constraint.OnDelete = strings.TrimSpace(strings.TrimPrefix(action, "ondelete:"))
|
||||||
} else if strings.HasPrefix(action, "onupdate:") {
|
} else if strings.HasPrefix(action, "onupdate:") {
|
||||||
constraint.OnUpdate = strings.TrimSpace(strings.TrimPrefix(action, "onupdate:"))
|
constraint.OnUpdate = strings.TrimSpace(strings.TrimPrefix(action, "onupdate:"))
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ Table admin.audit_logs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Relationships
|
// Relationships
|
||||||
Ref: public.posts.user_id > public.users.id [ondelete: CASCADE, onupdate: CASCADE]
|
Ref: public.posts.user_id > public.users.id [delete: CASCADE, update: CASCADE]
|
||||||
Ref: public.comments.post_id > public.posts.id [ondelete: CASCADE]
|
Ref: public.comments.post_id > public.posts.id [delete: CASCADE]
|
||||||
Ref: public.comments.user_id > public.users.id [ondelete: SET NULL]
|
Ref: public.comments.user_id > public.users.id [delete: SET NULL]
|
||||||
Ref: admin.audit_logs.user_id > public.users.id [ondelete: SET NULL]
|
Ref: admin.audit_logs.user_id > public.users.id [delete: SET NULL]
|
||||||
|
|||||||
Reference in New Issue
Block a user