Skip to content
Snippets Groups Projects
Commit 2123c287 authored by Laurent's avatar Laurent
Browse files

fix patch from master -> stable migration

parent a1e8c2fb
Branches
Tags
3 merge requests!999Master,!992Master,!991Master
<?php
Zend_Registry::get('sql')->query('CREATE TABLE `album_item` ( '
Zend_Registry::get('sql')->query('CREATE TABLE if not exists `album_item` ( '
. 'id int(11) unsigned not null auto_increment,'
. 'album_id int(11) unsigned not null,'
. 'loan_count int(11) not null,'
......
<?php
Zend_Registry::get('sql')->query('CREATE TABLE `loan_pnb` ( '
Zend_Registry::get('sql')->query('CREATE TABLE if not exists `loan_pnb` ( '
. 'id int(11) unsigned not null auto_increment,'
. 'record_origin_id varchar(50) not null,'
. 'subscriber_id varchar(20) not null,'
......
<?php
Zend_Db_Table::getDefaultAdapter()
->query('alter table codif_thesaurus add column rules varchar(250)');
$adapter = Zend_Db_Table::getDefaultAdapter();
try {
$adapter->query('select rules from codif_thesaurus');
} catch (Exception $e) {
$adapter->query('alter table codif_thesaurus add column rules varchar(250)');
}
?>
\ No newline at end of file
<?php
$adapter = Zend_Registry::get('sql');
$adapter->query('ALTER TABLE reservations ADD COLUMN rang tinyint');
try {
$adpater->query('select rang from reservations limit 1');
} catch (Exception $e) {
$adapter->query('ALTER TABLE reservations ADD COLUMN rang tinyint');
}
$adapter->query('ALTER TABLE reservations modify date_resa datetime default null');
?>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment