mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-09 19:13:26 +00:00
Fix strict mode sql issue
This commit is contained in:
@@ -22,7 +22,7 @@ before_script:
|
||||
- echo "extension=zmq.so" > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/zmq.ini
|
||||
- yes | pecl install imagick
|
||||
- mysql -e 'create database update39_test;create database ab_test;create database db_test;'
|
||||
- mysql -e 'SET @@global.sql_mode= "";'
|
||||
- mysql -e 'SET @@global.sql_mode= STRICT_ALL_TABLES;'
|
||||
- mysql -e 'SET @@global.max_allowed_packet= 33554432;'
|
||||
- mysql -e 'SET @@global.wait_timeout= 999999;'
|
||||
- git clone git://github.com/alchemy-fr/Phraseanet-Extension.git
|
||||
|
@@ -80,14 +80,14 @@ class ApiApplication
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="client_id", type="string", length=32, nullable=false)
|
||||
* @ORM\Column(name="client_id", type="string", length=128, nullable=false)
|
||||
*/
|
||||
private $clientId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="client_secret", type="string", length=32, nullable=false)
|
||||
* @ORM\Column(name="client_secret", type="string", length=128, nullable=false)
|
||||
*/
|
||||
private $clientSecret;
|
||||
|
||||
|
@@ -22,7 +22,7 @@ class Token
|
||||
{
|
||||
/**
|
||||
* @ORM\Id
|
||||
* @ORM\Column(type="string", length=16)
|
||||
* @ORM\Column(type="string", length=128)
|
||||
*/
|
||||
private $value;
|
||||
|
||||
|
@@ -996,12 +996,12 @@ class databox_field implements cache_cacheableInterface
|
||||
}
|
||||
|
||||
$sql = "INSERT INTO metadatas_structure
|
||||
(`id`, `name`, `src`, `readonly`, `indexable`, `type`, `tbranch`,
|
||||
(`id`, `name`, `src`, `readonly`, `required`, `indexable`, `type`, `tbranch`,
|
||||
`thumbtitle`, `multi`, `business`, `aggregable`,
|
||||
`report`, `sorter`)
|
||||
VALUES (null, :name, '', 0, 1, 'string', '',
|
||||
`report`, `sorter`, `separator`)
|
||||
VALUES (null, :name, '', 0, 0, 1, 'string', '',
|
||||
null, :multi,
|
||||
0, 0, 1, :sorter)";
|
||||
0, 0, 1, :sorter, '')";
|
||||
|
||||
$name = self::generateName($name);
|
||||
|
||||
|
@@ -1974,18 +1974,15 @@
|
||||
<name>pwd</name>
|
||||
<type>char(64)</type>
|
||||
<null>YES</null>
|
||||
|
||||
<extra></extra>
|
||||
|
||||
<default></default>
|
||||
<comment></comment>
|
||||
</field>
|
||||
<field>
|
||||
<name>viewname</name>
|
||||
<type>char(128)</type>
|
||||
<null></null>
|
||||
<null>YES</null>
|
||||
<extra></extra>
|
||||
|
||||
<default></default>
|
||||
<comment></comment>
|
||||
</field>
|
||||
|
Reference in New Issue
Block a user