mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
varchar migration test
This commit is contained in:
@@ -1264,6 +1264,18 @@ trait MigrationsBase
|
||||
|
||||
$this->assertEquals(202, $text['headers']['status-code']);
|
||||
|
||||
$varchar = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/varchar', [
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
'x-appwrite-key' => $this->getProject()['apiKey']
|
||||
], [
|
||||
'key' => 'varchar',
|
||||
'required' => false,
|
||||
]);
|
||||
|
||||
$this->assertEquals(202, $varchar['headers']['status-code']);
|
||||
|
||||
|
||||
$mediumtext = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/mediumtext', [
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
@@ -1302,6 +1314,7 @@ trait MigrationsBase
|
||||
'regulartext' => 'regularText',
|
||||
'mediumtext' => 'mediumText',
|
||||
'longtext' => 'longText',
|
||||
'varchar' => 'varchar',
|
||||
]
|
||||
]);
|
||||
|
||||
@@ -1389,6 +1402,7 @@ trait MigrationsBase
|
||||
$this->assertStringContainsString('regularText', $csvData, 'CSV should contain the text column header');
|
||||
$this->assertStringContainsString('mediumText', $csvData, 'CSV should contain the medium column header');
|
||||
$this->assertStringContainsString('longText', $csvData, 'CSV should contain the long text column header');
|
||||
$this->assertStringContainsString('varchar', $csvData, 'CSV should contain the varchar column header');
|
||||
|
||||
// Cleanup
|
||||
$this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, [
|
||||
|
||||
Reference in New Issue
Block a user