Skip to content

Commit bd8a8ac

Browse files
updated postgres adapter and tests
1 parent e95802f commit bd8a8ac

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/Database/Adapter/Postgres.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ public function createCollection(string $name, array $attributes = [], array $in
239239
\"_updatedAt\" TIMESTAMP(3) DEFAULT NULL,
240240
\"_createdBy\" VARCHAR(255) DEFAULT NULL,
241241
\"_updatedBy\" VARCHAR(255) DEFAULT NULL,
242-
_permissions TEXT DEFAULT NULL,
243242
" . \implode(' ', $attributeStrings) . "
244243
_permissions TEXT DEFAULT NULL
245244
);

tests/e2e/Adapter/Scopes/DocumentTests.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,6 +1214,7 @@ public function testIncreaseDecrease(): Document
12141214
$document = $database->getDocument($collection, $document->getId());
12151215
$this->assertEquals(104.4, $document->getAttribute('increase_float'));
12161216

1217+
$database->deleteCollection($collection);
12171218
return $document;
12181219
}
12191220

@@ -6239,6 +6240,8 @@ public function testCreatedByUpdatedBy(): void
62396240
$doc = $database->getDocument($collection, $document->getId());
62406241
$this->assertEquals('test_user_3', $doc->getCreatedBy());
62416242
$this->assertEquals('test_user_5', $doc->getUpdatedBy());
6243+
6244+
$database->deleteCollection($collection);
62426245
}
62436246
}
62446247
}

0 commit comments

Comments
 (0)