aerich icon indicating copy to clipboard operation
aerich copied to clipboard

[Enhancement] Fix version file formats

Open ehdgua01 opened this issue 4 years ago • 1 comments

FIX

  • _M2M_TABLE_TEMPLATE

    • Modify the template to make it easier to read.
  • write_version_file function

    • write_version_file function write duplicated semicolon when writing CREATE TABLE ... DDL because TABLE_CREATE_TEMPLATE has a semicolon end of the line

ehdgua01 avatar Oct 12 '21 02:10 ehdgua01

@long2ice Can you review this PR?

ehdgua01 avatar Oct 15 '21 04:10 ehdgua01

@long2ice Hi, Can I add a docker-compose.yaml file for testing?

see below,

version: '3.9'
services:
  mysql:
    image: mysql:8
    ports:
      - "3306:3306"
    environment:
      MYSQL_DATABASE: test_\{\}
      MYSQL_ROOT_PASSWORD: 123456

  postgres:
    image: postgres:14
    ports:
      - "5432:5432"
    environment:
      POSTGRES_DB: test_\{\}
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: 123456

ehdgua01 avatar Sep 16 '22 01:09 ehdgua01

Thanks!

long2ice avatar Sep 16 '22 01:09 long2ice