Skip to content

Commit effcabe

Browse files
committed
fix: can't drop table users on PostgreSQL
$this->db->disableForeignKeyChecks() does not work on PostgreSQL.
1 parent fa994dc commit effcabe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database/Migrations/2020-12-28-223112_create_auth_tables.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ public function down(): void
136136
{
137137
$this->db->disableForeignKeyChecks();
138138

139-
$this->forge->dropTable('users', true);
140139
$this->forge->dropTable('auth_logins', true);
141140
$this->forge->dropTable('auth_token_logins', true);
142141
$this->forge->dropTable('auth_remember_tokens', true);
143142
$this->forge->dropTable('auth_identities', true);
144143
$this->forge->dropTable('auth_groups_users', true);
145144
$this->forge->dropTable('auth_permissions_users', true);
145+
$this->forge->dropTable('users', true);
146146

147147
$this->db->enableForeignKeyChecks();
148148
}

0 commit comments

Comments
 (0)