-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from ushahidi/release-prep
Release prep
- Loading branch information
Showing
3 changed files
with
148 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Changelog | ||
|
||
### v3.0.0-alpha.2 | ||
|
||
* UI - create post | ||
* Detailed LICENSE.md | ||
* Added Changelog.md | ||
|
||
### v3.0.0-alpha.1 | ||
|
||
* Initial development release | ||
* REST API | ||
* Posts endpoint | ||
* Forms, groups, and attributes endpoints | ||
* Media endpoint | ||
* Tags endpoint | ||
* Users endpoint | ||
* Posts revisions and translations support | ||
* GeoJSON support on Posts endpoint | ||
* Supports OAuth2 for authentication | ||
* UI | ||
* Backbone Marionette based JS frontend | ||
* Post listing, detail and delete | ||
* Map views | ||
* UI Wireframes (in app but not powered by real data) | ||
* Sets listing, detail, create | ||
* Login, Register | ||
* Edit post | ||
* Unit tests | ||
* Build process | ||
* Vagrant setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?php defined('SYSPATH') OR die('No direct script access.'); | ||
|
||
class Migration_3_0_20131028221729 extends Minion_Migration_Base { | ||
|
||
/** | ||
* Run queries needed to apply this migration | ||
* | ||
* @param Kohana_Database $db Database connection | ||
*/ | ||
public function up(Kohana_Database $db) | ||
{ | ||
list($form_id, $affected_rows) = DB::query(DATABASE::INSERT, " | ||
INSERT INTO `forms` (`parent_id`, `name`, `description`, `type`, `created`, `updated`) | ||
VALUES | ||
(0,'Post','Post form','report',0,0); | ||
")->execute($db); | ||
|
||
list($group_id, $affected_rows) = DB::query(DATABASE::INSERT, " | ||
INSERT INTO `form_groups` (`form_id`, `label`, `priority`) | ||
VALUES | ||
(:form_id,'Main',99); | ||
")->bind(':form_id', $form_id) | ||
->execute($db); | ||
|
||
list($field_id, $affected_rows) = DB::query(DATABASE::INSERT, " | ||
INSERT INTO `form_attributes` (`key`, `label`, `input`, `type`, `required`, `default`, `priority`, `options`, `cardinality`) | ||
VALUES | ||
('location','Location','location','point',0,NULL,2,'',1) | ||
")->execute($db); | ||
|
||
DB::query(DATABASE::INSERT, " | ||
INSERT INTO `form_groups_form_attributes` (`form_group_id`, `form_attribute_id`) | ||
VALUES | ||
(:group,:field) | ||
")->bind(':group', $group_id) | ||
->bind(':field', $field_id) | ||
->execute($db); | ||
|
||
list($post_id, $affected_rows) = DB::query(DATABASE::INSERT, " | ||
INSERT INTO `posts` (`form_id`, `type`, `title`, `content`, `status`) | ||
VALUES | ||
(:form_id, 'report', 'First post', 'Delete this post and add your own!', 'published') | ||
")->bind(':form_id', $form_id) | ||
->execute($db); | ||
|
||
DB::query(DATABASE::INSERT, " | ||
INSERT INTO `post_point` (`post_id`, `form_attribute_id`, `value`) | ||
VALUES | ||
(:post, :field_id, GeomFromText('POINT(174.78 -36.85)')) | ||
")->bind(':field_id', $field_id) | ||
->bind(':post', $post_id) | ||
->execute($db); | ||
|
||
DB::query(DATABASE::INSERT, " | ||
INSERT INTO `tags` (`tag`, `slug`, `type`, `color`, `description`, `priority`) | ||
VALUES | ||
('example1', 'example1', 'category', 'ff0000', 'Example Category', 0), | ||
('example2', 'example2', 'category', '00ff00', 'Example Category', 0), | ||
('example3', 'example3', 'category', '0000ff', 'Example Category', 0) | ||
")->execute($db); | ||
} | ||
|
||
/** | ||
* Run queries needed to remove this migration | ||
* | ||
* @param Kohana_Database $db Database connection | ||
*/ | ||
public function down(Kohana_Database $db) | ||
{ | ||
// $db->query(NULL, 'DROP TABLE ... '); | ||
} | ||
|
||
} |