mirror of
				https://github.com/open-webui/open-webui
				synced 2025-06-26 18:26:48 +00:00 
			
		
		
		
	dev5
This commit is contained in:
		
							parent
							
								
									c0441ab2b8
								
							
						
					
					
						commit
						175ffc5c66
					
				@ -2,7 +2,7 @@
 | 
			
		||||
 | 
			
		||||
[alembic]
 | 
			
		||||
# path to migration scripts
 | 
			
		||||
script_location = open_webui/migrations
 | 
			
		||||
script_location = migrations
 | 
			
		||||
 | 
			
		||||
# template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
 | 
			
		||||
# Uncomment the line below if you want the files to be prepended with date and time
 | 
			
		||||
 | 
			
		||||
@ -46,9 +46,12 @@ def run_migrations():
 | 
			
		||||
        from alembic import command
 | 
			
		||||
        from alembic.config import Config
 | 
			
		||||
 | 
			
		||||
        print(OPEN_WEBUI_DIR)
 | 
			
		||||
 | 
			
		||||
        alembic_cfg = Config(OPEN_WEBUI_DIR / "alembic.ini")
 | 
			
		||||
 | 
			
		||||
        # Set the script location dynamically
 | 
			
		||||
        migrations_path = OPEN_WEBUI_DIR / "migrations"
 | 
			
		||||
        alembic_cfg.set_main_option("script_location", str(migrations_path))
 | 
			
		||||
 | 
			
		||||
        command.upgrade(alembic_cfg, "head")
 | 
			
		||||
    except Exception as e:
 | 
			
		||||
        print(f"Error: {e}")
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										4
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@ -1,12 +1,12 @@
 | 
			
		||||
{
 | 
			
		||||
	"name": "open-webui",
 | 
			
		||||
	"version": "0.3.17.dev4",
 | 
			
		||||
	"version": "0.3.17.dev5",
 | 
			
		||||
	"lockfileVersion": 3,
 | 
			
		||||
	"requires": true,
 | 
			
		||||
	"packages": {
 | 
			
		||||
		"": {
 | 
			
		||||
			"name": "open-webui",
 | 
			
		||||
			"version": "0.3.17.dev4",
 | 
			
		||||
			"version": "0.3.17.dev5",
 | 
			
		||||
			"dependencies": {
 | 
			
		||||
				"@codemirror/lang-javascript": "^6.2.2",
 | 
			
		||||
				"@codemirror/lang-python": "^6.1.6",
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
	"name": "open-webui",
 | 
			
		||||
	"version": "0.3.17.dev4",
 | 
			
		||||
	"version": "0.3.17.dev5",
 | 
			
		||||
	"private": true,
 | 
			
		||||
	"scripts": {
 | 
			
		||||
		"dev": "npm run pyodide:fetch && vite dev --host",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user