mirror of
https://github.com/appwrite/appwrite
synced 2026-05-06 06:48:22 +00:00
removed spaital type response and will be using the json type for the spatial responses
This commit is contained in:
parent
5a6955debd
commit
e7113a080d
8 changed files with 7 additions and 9 deletions
|
|
@ -57,8 +57,7 @@ class Mapper
|
|||
'datetime' => Type::string(),
|
||||
'json' => Types::json(),
|
||||
'none' => Types::json(),
|
||||
'any' => Types::json(),
|
||||
'spatial' => Types::json(),
|
||||
'any' => Types::json()
|
||||
];
|
||||
|
||||
foreach ($defaults as $type => $default) {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ abstract class Model
|
|||
public const TYPE_DATETIME_EXAMPLE = '2020-10-15T06:38:00.000+00:00';
|
||||
public const TYPE_RELATIONSHIP = 'relationship';
|
||||
public const TYPE_PAYLOAD = 'payload';
|
||||
public const TYPE_SPATIAL = 'spatial';
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ class AttributeLine extends Attribute
|
|||
|
||||
$this
|
||||
->addRule('default', [
|
||||
'type' => self::TYPE_SPATIAL,
|
||||
'type' => self::TYPE_JSON,
|
||||
'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.',
|
||||
'default' => null,
|
||||
'required' => false,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ class AttributePoint extends Attribute
|
|||
|
||||
$this
|
||||
->addRule('default', [
|
||||
'type' => self::TYPE_SPATIAL,
|
||||
'type' => self::TYPE_JSON,
|
||||
'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.',
|
||||
'default' => null,
|
||||
'required' => false,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ class AttributePolygon extends Attribute
|
|||
|
||||
$this
|
||||
->addRule('default', [
|
||||
'type' => self::TYPE_SPATIAL,
|
||||
'type' => self::TYPE_JSON,
|
||||
'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.',
|
||||
'default' => null,
|
||||
'required' => false,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ class ColumnLine extends Column
|
|||
|
||||
$this
|
||||
->addRule('default', [
|
||||
'type' => self::TYPE_SPATIAL,
|
||||
'type' => self::TYPE_JSON,
|
||||
'description' => 'Default value for column when not provided. Cannot be set when column is required.',
|
||||
'default' => null,
|
||||
'required' => false,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ class ColumnPoint extends Column
|
|||
|
||||
$this
|
||||
->addRule('default', [
|
||||
'type' => self::TYPE_SPATIAL,
|
||||
'type' => self::TYPE_JSON,
|
||||
'description' => 'Default value for column when not provided. Cannot be set when column is required.',
|
||||
'default' => null,
|
||||
'required' => false,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ class ColumnPolygon extends Column
|
|||
|
||||
$this
|
||||
->addRule('default', [
|
||||
'type' => self::TYPE_SPATIAL,
|
||||
'type' => self::TYPE_JSON,
|
||||
'description' => 'Default value for column when not provided. Cannot be set when column is required.',
|
||||
'default' => null,
|
||||
'required' => false,
|
||||
|
|
|
|||
Loading…
Reference in a new issue