我在Fortrabbit上创建了应用并为我的应用购买了一项服务。我推了一些我的应用程序(Laravel)并创建了我的数据库。现在我想重置我的应用程序。我怎样才能做到这一点?有人可以帮忙吗?
答案 0 :(得分:0)
这是我自己使用laravel 4在Fortrabbit中刷新完整数据库的脚本
DB::statement('SET FOREIGN_KEY_CHECKS=0');
$tables= DB::select('SHOW TABLES;');
foreach ($tables as $table) {
foreach ($table as $key=>$tableName) {
$tables= DB::statement("DROP TABLE $tableName;");
}
}
DB::statement('SET FOREIGN_KEY_CHECKS=1');
答案 1 :(得分:0)
这个答案来自Fortrabbit支持:
sorry, it's not possible to reset the git repo (for now).
But you can push new code any time. You can also delete files when you ssh into you App.
If you want to start form the scratch, I suggest to spin up a new App.