mirror of
				https://github.com/beego/bee.git
				synced 2025-11-03 23:03:27 +00:00 
			
		
		
		
	fix cannot migrate with Postgres
This commit is contained in:
		@@ -244,7 +244,7 @@ func selectMigrationsTableSql(driver string) string {
 | 
				
			|||||||
	case "mysql":
 | 
						case "mysql":
 | 
				
			||||||
		return "DESC migrations"
 | 
							return "DESC migrations"
 | 
				
			||||||
	case "postgres":
 | 
						case "postgres":
 | 
				
			||||||
		return "SELECT * FROM migrations ORDER BY id_migration;"
 | 
							return "SELECT * FROM migrations WHERE false ORDER BY id_migration;"
 | 
				
			||||||
	default:
 | 
						default:
 | 
				
			||||||
		return "DESC migrations"
 | 
							return "DESC migrations"
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user