acdr/acdr-admin/sql/tools/sqlserver/create_schema.sh

6 lines
230 B
Bash
Raw Normal View History

2024-09-02 07:40:26 +08:00
#!/usr/bin/env bash
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P ${SA_PASSWORD} -Q "CREATE DATABASE [ruoyi-vue-pro];
GO"
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P ${SA_PASSWORD} -d 'ruoyi-vue-pro' -i /tmp/schema.sql