aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rw-r--r--install/db/120-database.php2
-rw-r--r--install/piwigo_structure-mysql.sql3
2 files changed, 3 insertions, 2 deletions
diff --git a/install/db/120-database.php b/install/db/120-database.php
index ec156e0df..54af02c01 100644
--- a/install/db/120-database.php
+++ b/install/db/120-database.php
@@ -28,7 +28,7 @@ if (!defined('PHPWG_ROOT_PATH'))
$upgrade_description = 'rotation mode (code, not angle) is stored in the database';
-$query = 'ALTER TABLE '.IMAGES_TABLE.' ADD COLUMN rotation tinyint DEFAULT NULL';
+$query = 'ALTER TABLE '.IMAGES_TABLE.' ADD COLUMN rotation tinyint unsigned DEFAULT NULL';
pwg_query($query);
echo
diff --git a/install/piwigo_structure-mysql.sql b/install/piwigo_structure-mysql.sql
index 914c58f6e..35a0cfe68 100644
--- a/install/piwigo_structure-mysql.sql
+++ b/install/piwigo_structure-mysql.sql
@@ -185,7 +185,7 @@ CREATE TABLE `piwigo_images` (
`filesize` mediumint(9) unsigned default NULL,
`width` smallint(9) unsigned default NULL,
`height` smallint(9) unsigned default NULL,
- `coi` char(4) default NULL COMMENT 'center of interest',
+ `coi` char(4) default NULL COMMENT 'center of interest',
`representative_ext` varchar(4) default NULL,
`date_metadata_update` date default NULL,
`rating_score` float(5,2) unsigned default NULL,
@@ -198,6 +198,7 @@ CREATE TABLE `piwigo_images` (
`level` tinyint unsigned NOT NULL default '0',
`md5sum` char(32) default NULL,
`added_by` smallint(5) NOT NULL default '0',
+ `rotation` tinyint unsigned default null,
PRIMARY KEY (`id`),
KEY `images_i2` (`date_available`),
KEY `images_i3` (`rating_score`),