hunk.code_window: 				if err := m.databaseDrv.Run(migr.BufferedBody, migr.FileType); err != nil {
   					return err
   				}
   				if int64(migr.Version) == migr.TargetVersion {
   					// Insert Version number into the table
   					if err := m.databaseDrv.InsertVersion(int64(migr.Version)); err != nil {
   						return err
   					}
   				} else {
   					// Delete Version number from the table
  
hunk.labels: keep keep keep keep replace replace replace replace keep keep keep
hunk.after_edit: 				version := int64(migr.Version)
   				if version == migr.TargetVersion {
   					if version != lastInsertVersion {
   						// Insert Version number into the table
   						if err := m.databaseDrv.InsertVersion(version); err != nil {
   							return err
   						}
   						lastInsertVersion = version
  
hunk.file_path: cli/migrate/migrate.go
hunk.type: replace
file: {
    "description": "drop test",
    "depends": [
      "permission.json"
    ],
    "items": [
      {
        "name": "drop article no cascade",
        "url": "/api/1/query",
        "role": "admin",
        "status_code": 400,
        "method": "POST",
        "user_id": "1",
        "response": {
          "path": "$",
          "error": "can not delete due to the following dependent objects - [(\"author\",relationship,\"articles\"),(\"category\",relationship,\"articles\")]"
        },
        "request": {
          "kind": "drop_table",
          "body": {
            "__type": "drop_table",
            "table": "article",
            "cascade": false
          }
        }
      },
      {
        "name": "drop articles rel on author",
        "url": "/api/1/query",
        "role": "admin",
        "status_code": 200,
        "method": "POST",
        "user_id": "1",
        "request": {
          "kind": "drop_relationship",
          "body": {
            "__type": "drop_relationship",
            "table": "author",
            "relationship": "articles"
          }
        }
      },
      {
        "name": "drop article no cascade",
        "url": "/api/1/query",
        "role": "admin",
        "status_code": 400,
        "method": "POST",
        "user_id": "1",
        "response": {
          "path": "$",
          "error": "can not delete due to the following dependent objects - [(\"category\",relationship,\"articles\")]"
        },
        "request": {
          "kind": "drop_table",
          "body": {
            "__type": "drop_table",
            "table": "article",
            "cascade": false
          }
        }
      },
      {
        "name": "drop articles rel on category",
        "url": "/api/1/query",
        "role": "admin",
        "status_code": 200,
        "method": "POST",
        "user_id": "1",
        "request": {
          "kind": "drop_relationship",
          "body": {
            "__type": "drop_relationship",
            "table": "category",
            "relationship": "articles"
          }
        }
      },
      {
        "name": "drop article no cascade",
        "url": "/api/1/query",
        "role": "admin",
        "status_code": 200,
        "method": "POST",
        "user_id": "1",
        "request": {
          "kind": "drop_table",
          "body": {
            "__type": "drop_table",
            "table": "article",
            "cascade": false
          }
        }
      }
    ]
  }