cd /data/base/zjycwymp.xiaozhuanggx.com
tab 补全看下文件名,在看下有几个版本 这里是(v1----v8)没有v6 执行7次
php artisan migrate --path=database/migrations
在查看数据库
MariaDB [zjyccharge]> use zijinyuecheng;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [zijinyuecheng]> show tables;
+-------------------------+
| Tables_in_zijinyuecheng |
+-------------------------+
| black_cars |
| cars |
| community |
| config_install |
| daily_income |
| duty_daily_income |
| migrations |
| offline_pay |
| order_parking |
| passway |
| property_information |
| property_user |
+-------------------------+
cd /data/base/zjyccharge.xiaozhuanggx.com
这里就一个版本 v1发一次就行
php artisan migrate --path=database/migrations/phaseOne/v1
查看数据库
MariaDB [zijinyuecheng]> use zjyccharge;
Database changed
MariaDB [zjyccharge]> show tables;
Empty set (0.00 sec)
MariaDB [zjyccharge]> show tables;
+----------------------+
| Tables_in_zjyccharge |
+----------------------+
| charge_system |
| feeds_time_charge |
| migrations |
| per_visit_charge |
| step_toll_charge |
| sub_time_charge |
| time_charge |
+----------------------+
7 rows in set (0.00 sec)
delete from community where id=42;