seeders and navbar

This commit is contained in:
2018-10-27 23:22:24 -05:00
parent 9679866106
commit 5e9be02dd5
6 changed files with 27 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
<?php
use Illuminate\Database\Seeder;
class ConfigTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('Config')->insert([
'RentalTax' => 15.00,
'AllyRentalTax' => 20.00,
'RefineRate' => 84.00,
'RentalTime' => 2592000,
]);
}
}

View File

@@ -14,6 +14,7 @@ class DatabaseSeeder extends Seeder
{
$this->call([
WikiTableSeeder::class,
ConfigTableSeeder::class,
]);
}
}

View File

@@ -14,14 +14,14 @@ SET time_zone = "+00:00";
CREATE TABLE IF NOT EXISTS `wiki_member` (
`uid` int(20) NOT NULL,
`gid` int(20) NOT NULL,
`gname` varchar(255) NOT NULL
`groupname` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `member`
--
INSERT INTO `wiki_member` (`uid`, `gid`, `gname`) VALUES
INSERT INTO `wiki_member` (`uid`, `gid`, `groupname`) VALUES
(2, 1, 'user'),
(2, 2, 'it'),
(2, 3, 'fc'),