mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
Fixes 768. php artisan migrate will work regardless of mysql version or default_database_engine.
This commit is contained in:
parent
793564e0c0
commit
04161678b6
@ -21,6 +21,8 @@ class CreateComponentGroupsTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('component_groups', function (Blueprint $table) {
|
||||
$table->engine = 'InnoDB';
|
||||
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->timestamps();
|
||||
|
@ -21,6 +21,8 @@ class CreateComponentsTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('components', function (Blueprint $table) {
|
||||
$table->engine = 'InnoDB';
|
||||
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->text('description');
|
||||
|
@ -21,6 +21,8 @@ class CreateIncidentTemplatesTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('incident_templates', function (Blueprint $table) {
|
||||
$table->engine = 'InnoDB';
|
||||
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('slug');
|
||||
|
@ -21,6 +21,8 @@ class CreateIncidentsTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('incidents', function (Blueprint $table) {
|
||||
$table->engine = 'InnoDB';
|
||||
|
||||
$table->increments('id');
|
||||
$table->integer('component_id')->default(0);
|
||||
$table->string('name');
|
||||
|
@ -21,6 +21,8 @@ class CreateMetricPointsTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('metric_points', function (Blueprint $table) {
|
||||
$table->engine = 'InnoDB';
|
||||
|
||||
$table->increments('id');
|
||||
$table->integer('metric_id');
|
||||
$table->decimal('value', 10, 3);
|
||||
|
@ -21,6 +21,8 @@ class CreateMetricsTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('metrics', function (Blueprint $table) {
|
||||
$table->engine = 'InnoDB';
|
||||
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('suffix');
|
||||
|
@ -21,6 +21,8 @@ class CreateSettingsTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('settings', function (Blueprint $table) {
|
||||
$table->engine = 'InnoDB';
|
||||
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->longText('value');
|
||||
|
@ -21,6 +21,8 @@ class CreateSubscribersTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('subscribers', function (Blueprint $table) {
|
||||
$table->engine = 'InnoDB';
|
||||
|
||||
$table->increments('id');
|
||||
$table->string('email');
|
||||
$table->string('verify_code');
|
||||
|
@ -21,6 +21,8 @@ class CreateUsersTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('users', function (Blueprint $table) {
|
||||
$table->engine = 'InnoDB';
|
||||
|
||||
$table->increments('id');
|
||||
$table->string('username');
|
||||
$table->string('password');
|
||||
|
@ -21,6 +21,8 @@ class CreateTagsTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('tags', function (Blueprint $table) {
|
||||
$table->engine = 'InnoDB';
|
||||
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('slug');
|
||||
|
@ -21,6 +21,8 @@ class CreateComponentTagTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('component_tag', function (Blueprint $table) {
|
||||
$table->engine = 'InnoDB';
|
||||
|
||||
$table->increments('id');
|
||||
$table->integer('component_id');
|
||||
$table->integer('tag_id');
|
||||
|
@ -20,6 +20,8 @@ class CreateJobsTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('jobs', function (Blueprint $table) {
|
||||
$table->engine = 'InnoDB';
|
||||
|
||||
$table->bigIncrements('id');
|
||||
$table->string('queue');
|
||||
$table->text('payload');
|
||||
|
@ -20,6 +20,8 @@ class CreateFailedJobsTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('failed_jobs', function (Blueprint $table) {
|
||||
$table->engine = 'InnoDB';
|
||||
|
||||
$table->increments('id');
|
||||
$table->text('connection');
|
||||
$table->text('queue');
|
||||
|
Loading…
x
Reference in New Issue
Block a user