fix: ensure permission.permtype column is VARCHAR(255) after schema import
This commit is contained in:
parent
d5c0fcb1cd
commit
c967cfffda
6
build.sh
6
build.sh
@ -183,6 +183,12 @@ echo " Database '$DB_NAME' created."
|
||||
mysql -h "$DB_HOST" -P "$DB_PORT" -u "$DB_USER" -p"$DB_PASS" "$DB_NAME" < "$APP_DIR/integrated_crm_app_schema.sql"
|
||||
echo " Schema imported."
|
||||
|
||||
# Fix permission table column lengths (rbac xlsx may define shorter lengths)
|
||||
mysql -h "$DB_HOST" -P "$DB_PORT" -u "$DB_USER" -p"$DB_PASS" "$DB_NAME" <<EOSQL
|
||||
ALTER TABLE permission MODIFY COLUMN permtype VARCHAR(255) COMMENT '权限类型';
|
||||
EOSQL
|
||||
echo " Permission table columns fixed."
|
||||
|
||||
# Generate config.json with encrypted password
|
||||
python3 <<PYEOF
|
||||
import sys, json
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user