mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-22 22:52:35 +03:00
Added location field for services.
This commit is contained in:
parent
dfd55d9472
commit
52e17063b7
2 changed files with 12 additions and 1 deletions
|
@ -18,13 +18,23 @@ class Migration_location extends CI_Migration {
|
|||
ALTER TABLE `ea_appointments`
|
||||
ADD COLUMN `location` TEXT AFTER `end_datetime`;
|
||||
');
|
||||
|
||||
$this->db->query('
|
||||
ALTER TABLE `ea_services`
|
||||
ADD COLUMN `location` TEXT AFTER `description`;
|
||||
');
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->db->query('
|
||||
ALTER TABLE `ea_appointments`
|
||||
DROP COLUMN `location` TEXT AFTER `end_datetime`;
|
||||
DROP COLUMN `location`;
|
||||
');
|
||||
|
||||
$this->db->query('
|
||||
ALTER TABLE `ea_services`
|
||||
DROP COLUMN `location`;
|
||||
');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -78,6 +78,7 @@ CREATE TABLE IF NOT EXISTS `ea_services` (
|
|||
`price` DECIMAL(10, 2),
|
||||
`currency` VARCHAR(32),
|
||||
`description` TEXT,
|
||||
`location` TEXT,
|
||||
`availabilities_type` VARCHAR(32) DEFAULT 'flexible',
|
||||
`attendants_number` INT(11) DEFAULT '1',
|
||||
`id_service_categories` INT(11),
|
||||
|
|
Loading…
Reference in a new issue