29 lines
856 B
Bash
29 lines
856 B
Bash
#!/usr/bin/env bash
|
|
|
|
# ============================================
|
|
# Yii2 Driver
|
|
# ============================================
|
|
#
|
|
# Entry point for the yii2-advanced driver.
|
|
# Sources all yii2 command modules and registers
|
|
# them into DRIVER_COMMANDS for dx::dispatch.
|
|
|
|
# ============================================
|
|
# Load Modules
|
|
# ============================================
|
|
|
|
# shellcheck source=/dev/null
|
|
source "$(ctx::dxkit)/drivers/yii2/migrate.sh"
|
|
|
|
# ============================================
|
|
# Register Commands
|
|
# ============================================
|
|
|
|
DRIVER_COMMANDS=(
|
|
[yii]="yii2::exec"
|
|
[migrate]="yii2::migrate::run"
|
|
[migrate-create]="yii2::migrate::create"
|
|
[migrate-down]="yii2::migrate::down"
|
|
[migrate-new]="yii2::migrate::new"
|
|
[migrate-history]="yii2::migrate::history"
|
|
)
|