Adding lazy-load version of feed component to load data using AJAX after page content has been rendered.
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
<?php namespace jasonwilliams\feed\Updates;
|
||||
|
||||
use Schema;
|
||||
use October\Rain\Database\Updates\Migration;
|
||||
|
||||
class JasonwilliamsFeedInitialSetup extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::create('jasonwilliams_feed_', function($table)
|
||||
{
|
||||
$table->engine = 'InnoDB';
|
||||
$table->increments('id')->unsigned();
|
||||
$table->integer('timestamp')->unsigned();
|
||||
$table->integer('channel_id')->unsigned();
|
||||
$table->string('title', 512)->nullable();
|
||||
$table->string('link', 256)->nullable();
|
||||
$table->text('body')->nullable();
|
||||
$table->text('extra');
|
||||
});
|
||||
|
||||
Schema::create('jasonwilliams_feed_tags', function($table)
|
||||
{
|
||||
$table->engine = 'InnoDB';
|
||||
$table->increments('id')->unsigned();
|
||||
$table->string('tag', 128);
|
||||
$table->integer('feed_item_id')->unsigned();
|
||||
});
|
||||
|
||||
Schema::create('jasonwilliams_feed_links', function($table)
|
||||
{
|
||||
$table->engine = 'InnoDB';
|
||||
$table->increments('id')->unsigned();
|
||||
$table->string('addr', 256);
|
||||
$table->string('display', 256);
|
||||
$table->integer('feed_item_id')->unsigned();
|
||||
});
|
||||
|
||||
Schema::create('jasonwilliams_feed_channels', function($table)
|
||||
{
|
||||
$table->engine = 'InnoDB';
|
||||
$table->increments('id')->unsigned();
|
||||
$table->string('title', 64);
|
||||
$table->string('slug', 64);
|
||||
$table->string('icon', 128)->nullable();
|
||||
$table->string('colour', 7)->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('jasonwilliams_feed_');
|
||||
Schema::dropIfExists('jasonwilliams_feed_tags');
|
||||
Schema::dropIfExists('jasonwilliams_feed_links');
|
||||
Schema::dropIfExists('jasonwilliams_feed_channels');
|
||||
}
|
||||
}
|
||||
3
www/plugins/jasonwilliams/feed/updates/version.yaml
Normal file
3
www/plugins/jasonwilliams/feed/updates/version.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
1.0.1:
|
||||
- 'Initialize plugin and create database tables.'
|
||||
- jasonwilliams_feed_initial_setup.php
|
||||
Reference in New Issue
Block a user