This repository was archived by the owner on Dec 6, 2019. It is now read-only.
File tree 3 files changed +14
-6
lines changed
3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,21 @@ APP_DEBUG=true
3
3
APP_KEY = SomeRandomString
4
4
APP_URL = http://localhost
5
5
6
+ # MySQL
6
7
DB_CONNECTION = mysql
7
8
DB_HOST = 127.0.0.1
8
9
DB_PORT = 3306
9
10
DB_DATABASE = homestead
10
11
DB_USERNAME = homestead
11
12
DB_PASSWORD = secret
12
13
14
+ # SQLite - If you want to use this instead of mysql, comment the mysql part above out (add a '#' at the beginning)
15
+ # and remove the comment identifier of the line below
16
+ # DB_CONNECTION=sqlite
17
+ # This is the database path for the file
18
+ # If you keep this commented out, this will be the default path '/home/OS_USER/PROJECT_FOLDER/database/database.sqlite'
19
+ # DB_DATABASE=Test.db
20
+
13
21
CACHE_DRIVER = file
14
22
SESSION_DRIVER = file
15
23
QUEUE_DRIVER = sync
Original file line number Diff line number Diff line change @@ -15,16 +15,16 @@ public function up() {
15
15
$ table ->increments ('id ' )->unsigned ;
16
16
17
17
$ table ->string ('address ' );
18
- $ table ->string ('motd ' );
19
- $ table ->string ('version ' );
20
- $ table ->boolean ('online ' );
18
+ $ table ->string ('motd ' )-> nullable () ;
19
+ $ table ->string ('version ' )-> nullable () ;
20
+ $ table ->boolean ('online ' )-> nullable () ;
21
21
//if the onlinemode check failed
22
22
$ table ->boolean ('onlinemode ' )->nullable ()->default (null );
23
23
24
- $ table ->smallInteger ('players ' )->unsigned ;
25
- $ table ->smallInteger ('maxplayers ' )->unsigned ;
24
+ $ table ->smallInteger ('players ' )->nullable ()-> unsigned ;
25
+ $ table ->smallInteger ('maxplayers ' )->nullable ()-> unsigned ;
26
26
27
- $ table ->smallInteger ('ping ' )->unsigned ;
27
+ $ table ->smallInteger ('ping ' )->nullable ()-> unsigned ;
28
28
29
29
$ table ->unique ("address " );
30
30
You can’t perform that action at this time.
0 commit comments