mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
removed spaital type response and will be using the json type for the spatial responses
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user