Skip to content

Commit

Permalink
status defaults to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
noumo committed May 17, 2015
1 parent f87a09e commit b33cbc7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions migrations/m000000_000000_install.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function up()
'title' => Schema::TYPE_STRING . '(128) DEFAULT NULL',
'text' => Schema::TYPE_TEXT . ' DEFAULT NULL',
'order_num' => Schema::TYPE_INTEGER . ' NOT NULL',
'status' => Schema::TYPE_BOOLEAN . " DEFAULT '0'"
'status' => Schema::TYPE_BOOLEAN . " DEFAULT '1'"
], 'ENGINE=MyISAM DEFAULT CHARSET=utf8');

//CATALOG MODULE
Expand Down Expand Up @@ -130,6 +130,7 @@ public function up()
'image' => Schema::TYPE_STRING . '(128) DEFAULT NULL',
'slug' => Schema::TYPE_STRING . '(128) DEFAULT NULL',
'time' => Schema::TYPE_INTEGER . " DEFAULT '0'",
'status' => Schema::TYPE_BOOLEAN . " DEFAULT '1'"
], 'ENGINE=MyISAM DEFAULT CHARSET=utf8');
$this->createIndex('slug', catalog\models\Item::tableName(), 'slug', true);

Expand Down Expand Up @@ -234,7 +235,7 @@ public function up()
'slug' => Schema::TYPE_STRING . '(128) DEFAULT NULL',
'time' => Schema::TYPE_INTEGER . " DEFAULT '0'",
'views' => Schema::TYPE_INTEGER . " DEFAULT '0'",
'status' => Schema::TYPE_BOOLEAN . " DEFAULT '0'"
'status' => Schema::TYPE_BOOLEAN . " DEFAULT '1'"
], 'ENGINE=MyISAM DEFAULT CHARSET=utf8');
$this->createIndex('slug', News::tableName(), 'slug', true);

Expand All @@ -249,7 +250,7 @@ public function up()
'lft' => Schema::TYPE_INTEGER . ' NOT NULL',
'rgt' => Schema::TYPE_INTEGER . ' NOT NULL',
'depth' => Schema::TYPE_INTEGER . ' NOT NULL',
'status' => Schema::TYPE_BOOLEAN . " DEFAULT '0'"
'status' => Schema::TYPE_BOOLEAN . " DEFAULT '1'"
], 'ENGINE=MyISAM DEFAULT CHARSET=utf8');
$this->createIndex('slug', article\models\Category::tableName(), 'slug', true);

Expand All @@ -263,7 +264,7 @@ public function up()
'slug' => Schema::TYPE_STRING . '(128) DEFAULT NULL',
'time' => Schema::TYPE_INTEGER . " DEFAULT '0'",
'views' => Schema::TYPE_INTEGER . " DEFAULT '0'",
'status' => Schema::TYPE_BOOLEAN . " DEFAULT '0'"
'status' => Schema::TYPE_BOOLEAN . " DEFAULT '1'"
], 'ENGINE=MyISAM DEFAULT CHARSET=utf8');
$this->createIndex('slug', article\models\Item::tableName(), 'slug', true);

Expand All @@ -282,7 +283,7 @@ public function up()
'question' => Schema::TYPE_TEXT . ' NOT NULL',
'answer' => Schema::TYPE_TEXT . ' NOT NULL',
'order_num' => Schema::TYPE_INTEGER . ' NOT NULL',
'status' => Schema::TYPE_BOOLEAN . " DEFAULT '0'"
'status' => Schema::TYPE_BOOLEAN . " DEFAULT '1'"
], 'ENGINE=MyISAM DEFAULT CHARSET=utf8');

//SUBSCRIBE MODULE
Expand Down

0 comments on commit b33cbc7

Please sign in to comment.