Skip to content

Beautiful Open-Source Form Builder

Refactor migration to correct access token removal from user_workspace table (#1150)

Chirag Chhatralab85d9903a599
diff --git a/api/database/migrations/2022_09_12_074636_remove_access_token_from_workspaces.php b/api/database/migrations/2022_09_12_074636_remove_access_token_from_workspaces.php
index ea77e3685..7cbd7bcce 100644
--- a/api/database/migrations/2022_09_12_074636_remove_access_token_from_workspaces.php
+++ b/api/database/migrations/2022_09_12_074636_remove_access_token_from_workspaces.php
@@ -26,7 +26,7 @@ return new class () extends Migration {
*/
public function down()
{
- Schema::table('workspaces', function (Blueprint $table) {
+ Schema::table('user_workspace', function (Blueprint $table) {
$table->string('access_token')->nullable();
$table->boolean('is_owner')->default(true);
$table->dropColumn('role');