mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +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(),
|
'datetime' => Type::string(),
|
||||||
'json' => Types::json(),
|
'json' => Types::json(),
|
||||||
'none' => Types::json(),
|
'none' => Types::json(),
|
||||||
'any' => Types::json(),
|
'any' => Types::json()
|
||||||
'spatial' => Types::json(),
|
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($defaults as $type => $default) {
|
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_DATETIME_EXAMPLE = '2020-10-15T06:38:00.000+00:00';
|
||||||
public const TYPE_RELATIONSHIP = 'relationship';
|
public const TYPE_RELATIONSHIP = 'relationship';
|
||||||
public const TYPE_PAYLOAD = 'payload';
|
public const TYPE_PAYLOAD = 'payload';
|
||||||
public const TYPE_SPATIAL = 'spatial';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var bool
|
* @var bool
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class AttributeLine extends Attribute
|
||||||
|
|
||||||
$this
|
$this
|
||||||
->addRule('default', [
|
->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.',
|
'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.',
|
||||||
'default' => null,
|
'default' => null,
|
||||||
'required' => false,
|
'required' => false,
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class AttributePoint extends Attribute
|
||||||
|
|
||||||
$this
|
$this
|
||||||
->addRule('default', [
|
->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.',
|
'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.',
|
||||||
'default' => null,
|
'default' => null,
|
||||||
'required' => false,
|
'required' => false,
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class AttributePolygon extends Attribute
|
||||||
|
|
||||||
$this
|
$this
|
||||||
->addRule('default', [
|
->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.',
|
'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.',
|
||||||
'default' => null,
|
'default' => null,
|
||||||
'required' => false,
|
'required' => false,
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class ColumnLine extends Column
|
||||||
|
|
||||||
$this
|
$this
|
||||||
->addRule('default', [
|
->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.',
|
'description' => 'Default value for column when not provided. Cannot be set when column is required.',
|
||||||
'default' => null,
|
'default' => null,
|
||||||
'required' => false,
|
'required' => false,
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class ColumnPoint extends Column
|
||||||
|
|
||||||
$this
|
$this
|
||||||
->addRule('default', [
|
->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.',
|
'description' => 'Default value for column when not provided. Cannot be set when column is required.',
|
||||||
'default' => null,
|
'default' => null,
|
||||||
'required' => false,
|
'required' => false,
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class ColumnPolygon extends Column
|
||||||
|
|
||||||
$this
|
$this
|
||||||
->addRule('default', [
|
->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.',
|
'description' => 'Default value for column when not provided. Cannot be set when column is required.',
|
||||||
'default' => null,
|
'default' => null,
|
||||||
'required' => false,
|
'required' => false,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue