mirror of
				https://github.com/slawkens/myaac.git
				synced 2025-10-31 07:56:23 +01:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			v1.2
			...
			feature/el
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 998e15cabd | 
| @@ -13,7 +13,9 @@ | |||||||
|         "nikic/fast-route": "^1.3", |         "nikic/fast-route": "^1.3", | ||||||
|         "matomo/device-detector": "^6.0", |         "matomo/device-detector": "^6.0", | ||||||
|         "illuminate/database": "^10.18", |         "illuminate/database": "^10.18", | ||||||
|         "peppeocchi/php-cron-scheduler": "4.*" |         "illuminate/filesystem": "^10.18", | ||||||
|  |         "peppeocchi/php-cron-scheduler": "4.*", | ||||||
|  |         "symfony/process": "^6.3" | ||||||
|     }, |     }, | ||||||
|     "require-dev": { |     "require-dev": { | ||||||
|         "filp/whoops": "^2.15", |         "filp/whoops": "^2.15", | ||||||
|   | |||||||
							
								
								
									
										15
									
								
								system/bin/dump_database.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								system/bin/dump_database.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | |||||||
|  | <?php | ||||||
|  |  | ||||||
|  | if(PHP_SAPI !== 'cli') { | ||||||
|  | 	echo 'This script can be run only in command line mode.'; | ||||||
|  | 	exit(1); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | require_once __DIR__ . '/../../common.php'; | ||||||
|  | require_once SYSTEM . 'functions.php'; | ||||||
|  | require_once SYSTEM . 'init.php'; | ||||||
|  |  | ||||||
|  | $test = new \Illuminate\Database\Schema\MySqlSchemaState($eloquentConnection); | ||||||
|  | $test->dump($eloquentConnection, BASE . 'dump.sql'); | ||||||
|  |  | ||||||
|  | echo 'Dumped.'; | ||||||
| @@ -111,6 +111,8 @@ try { | |||||||
| 	$capsule->addConnection([ | 	$capsule->addConnection([ | ||||||
| 		'driver' => 'mysql', | 		'driver' => 'mysql', | ||||||
| 		'database' => $config['database_name'], | 		'database' => $config['database_name'], | ||||||
|  | 		'username' => $config['database_user'], | ||||||
|  | 		'password' => $config['database_password'], | ||||||
| 	]); | 	]); | ||||||
|  |  | ||||||
| 	$capsule->getConnection()->setPdo($db); | 	$capsule->getConnection()->setPdo($db); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user